From patchwork Sat Apr 9 08:32:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenpeng Liang X-Patchwork-Id: 12807745 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00F6EC433FE for ; Sat, 9 Apr 2022 08:33:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236246AbiDIIfl (ORCPT ); Sat, 9 Apr 2022 04:35:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235642AbiDIIfk (ORCPT ); Sat, 9 Apr 2022 04:35:40 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C74A02AF4 for ; Sat, 9 Apr 2022 01:33:33 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Kb7ZQ1k5tzBrWj; Sat, 9 Apr 2022 16:29:18 +0800 (CST) Received: from dggpeml500017.china.huawei.com (7.185.36.243) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Sat, 9 Apr 2022 16:33:31 +0800 Received: from localhost.localdomain (10.69.192.56) by dggpeml500017.china.huawei.com (7.185.36.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Sat, 9 Apr 2022 16:33:31 +0800 From: Wenpeng Liang To: , CC: , , Subject: [PATCH for-next 0/5] RDMA/hns: Cleanup for removing redundant statements and judging return values Date: Sat, 9 Apr 2022 16:32:49 +0800 Message-ID: <20220409083254.9696-1-liangwenpeng@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500017.china.huawei.com (7.185.36.243) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Most static warnings are detected by tools, mainly about: (1) #1~3: Remove redundant statements. (2) #4~5: About the return value of the function. Chengchang Tang (1): RDMA/hns: Remove unnecessary check for the sgid_attr when modifying QP Guofeng Yue (1): RDMA/hns: Remove redundant variable "ret" Haoyue Xu (1): RDMA/hns: Init the variable at the suitable place Wenpeng Liang (1): RDMA/hns: Add judgment on the execution result of CMDQ that free vf resource Yixing Liu (1): RDMA/hns: Remove unused function to_hns_roce_state() drivers/infiniband/hw/hns/hns_roce_device.h | 11 -------- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 29 ++++++++++++--------- drivers/infiniband/hw/hns/hns_roce_qp.c | 20 -------------- 3 files changed, 17 insertions(+), 43 deletions(-) --- 2.33.0