From patchwork Tue Dec 6 01:19:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9461837 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 758E360236 for ; Tue, 6 Dec 2016 01:19:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60AFA28306 for ; Tue, 6 Dec 2016 01:19:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 548D52831B; Tue, 6 Dec 2016 01:19:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F10428306 for ; Tue, 6 Dec 2016 01:19:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751613AbcLFBTP (ORCPT ); Mon, 5 Dec 2016 20:19:15 -0500 Received: from mail-by2nam01on0041.outbound.protection.outlook.com ([104.47.34.41]:48753 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751981AbcLFBTN (ORCPT ); Mon, 5 Dec 2016 20:19:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iL4kQ1Yz0qXg0NyBYQMPoVPcIDH1g7dZ8EzblZYWrAM=; b=HXSVsJvfFrlafjMHYS9axigMDUHgNzsOHZw7Myn1Q1wbH+g1AFUBwEOFysSZBC+8jDtZvFaBQNVzzLMO3eHD829wLMvvwdq9ApaBl505sxSUl8Vt+QHluqfST1BQ/GhJ80FlJy5dTRx4kQtWVcQAUAdA76i3R/h6N7MdM47xcMA= Received: from BN1PR02CA0035.namprd02.prod.outlook.com (10.141.56.35) by MWHPR02MB2222.namprd02.prod.outlook.com (10.168.243.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.13; Tue, 6 Dec 2016 01:19:12 +0000 Received: from BN1BFFO11FD010.protection.gbl (2a01:111:f400:7c10::1:154) by BN1PR02CA0035.outlook.office365.com (2a01:111:e400:2a::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.761.9 via Frontend Transport; Tue, 6 Dec 2016 01:19:11 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN1BFFO11FD010.mail.protection.outlook.com (10.58.144.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.4 via Frontend Transport; Tue, 6 Dec 2016 01:19:10 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:2922; Count:19 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id CC.26.02899.0DF06485; Mon, 5 Dec 2016 17:09:36 -0800 (PST) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Mon, 5 Dec 2016 17:19:10 -0800 X-AuditID: 0ac94369-607ff70000000b53-8d-58460fd03aae Received: from exp-402881.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 4B.B0.03661.D0216485; Mon, 5 Dec 2016 17:19:09 -0800 (PST) Subject: [PATCH 3/5] mlx5: Avoid that sparse complains about dubious !x & y expressions To: Doug Ledford References: <9ff07804-492c-c67a-e729-b31e0f863027@sandisk.com> CC: Eli Cohen , "linux-rdma@vger.kernel.org" From: Bart Van Assche Message-ID: <572c702f-589f-2d5a-9e13-45223191db85@sandisk.com> Date: Mon, 5 Dec 2016 17:19:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <9ff07804-492c-c67a-e729-b31e0f863027@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRmVeSWpSXmKPExsXCddJ5ke4FfrcIgwevZC1env/AavHtYITF s0O9LA7MHs+mH2byeL/vKpvH501yAcxRXDYpqTmZZalF+nYJXBkPpz1hLJiiVvF45ROmBsbT Cl2MnBwSAiYS6+cvYeli5OIQEljKJDFhYicbhLOdUWL9ghZ2mKovB7ezQiQWM0r87NoJlhAW iJTovNPODGKLCKhJbHq1CCwuJGAn8XrBbiYQm1kgVuL852Ywm03ASOLb+5ksIDYvUM3+U9MY QWwWARWJuV8fsoLYogIREv1THkHVCEqcnPkEzOYUsJc4OuMO0BwOoJmaEut36UOMl5fY/nYO M8htEgKTWCU2bZnHAnGDusTJJfOZJjAKz0IyahZC+ywk7QsYmVcxiuVm5hTnpqcWGJrqFSfm pWQWZ+sl5+duYoSEfOYOxrtPvA8xCnAwKvHwfmhwjRBiTSwrrsw9xCjBwawkwvuIxy1CiDcl sbIqtSg/vqg0J7X4EKM0B4uSOK/bvS9hQgLpiSWp2ampBalFMFkmDk6pBsbaYxfWvV2z56BP TfA2T5+M30WXrn/9qFLfo/aNoS9GbJtDANu9+1Y1bu+Mdmya9/B5euUbi9WLrXfHb7Ur8Op9 feTZK88rn6f6B8tZSbQbbvsXnTv9a+dvp6/z+lkfR53V+2rqZKbV6Bzj//e83zPDjVbVDtqR Jl2iMi+0M0x3B0UwfuFsy1JiKc5INNRiLipOBABQlShRdQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBJMWRmVeSWpSXmKPExsXCtZGTTZdXyC3C4OIMU4uX5z+wWnw7GGHx 7FAviwOzx7Pph5k83u+7yubxeZNcAHMUl01Kak5mWWqRvl0CV8bDaU8YC6aoVTxe+YSpgfG0 QhcjJ4eEgInEl4PbWUFsIYGFjBKPPniB2MICkRKdd9qZQWwRATWJTa8WsUPU2Em8XrCbCcRm FoiVOL2kHayXTcBI4tv7mSwgNi9Qzf5T0xhBbBYBFYm5Xx+C1YgKREj0T3kEVSMocXLmEzCb U8Be4uiMO1Az1SX+zLvEDGHLS2x/O4d5AiPfLCQts5CUzUJStoCReRWjWG5mTnFuemaBoZFe cWJeSmZxtl5yfu4mRkjYRe1gvD7R/BAjEwenVAPjYQ/zCTH9ZeXxp0R2tvSIbnC3VFV/y/NN YHJj+rYG3QDeqfInlh6L1vsTLK078cnB7xf28qx4e/9J+eG7U7uef8osnVLLvGXtvBdvZh59 072yZGlnQ0r+t+dH7127t9X90zIHh38Ngka9jy9v2SgyifWw/7fYfxPmHP4ln+nyzZ7l68Pb qyrPsSixFGckGmoxFxUnAgDTh2Km6wEAAA== X-IncomingHeaderCount: 19 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(50466002)(64126003)(2950100002)(65956001)(4326007)(2270400002)(110136003)(68736007)(7846002)(6916009)(65806001)(33646002)(97736004)(53416004)(106466001)(39850400001)(4001350100001)(92566002)(36756003)(8676002)(626004)(50986999)(54356999)(77096006)(356003)(5660300001)(69596002)(31686004)(65826007)(23676002)(189998001)(83506001)(2906002)(8936002)(39410400001)(81156014)(76176999)(305945005)(230700001)(31696002)(86362001)(38730400001)(47776003)(39840400001)(39860400001)(575784001)(39450400002)(81166006)(309714004); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR02MB2222; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD010; 1:KkW/P/z+8fpCbYTPBp71jCi4BUWi73BlrG7mC4WSRB43HhhepaVFv4HimnS7Vo2nVTsDrAqZhfJUiRyR5leeNm8xO/FtadLKcmWmpjLTYAhkprbiRBbJ/n1BB0/IsOvhn7JzOUzu/obXDMVLmLjHsyYhgg1FgQFLZ3obhIQPyuqt3/ZOt+z3Xp2XO8RZLTrgWoBdL6711Zwb2zZUWSDlyI7RULri45wjHcrDWiWkLD+YN3OJBUbNENv9Ui1Jc1se0uxwvQS70tlN3qL0nyipbeDIWUhhU4UcpDRnzIiQgt3B1E8ajngtay6r+TBvsp5u7TQ8dMBVofYgeWSShyjOQr+iV5Z8ABEMOstJapz/43Itv7OL679qXNMB8SbY4AbGba7jbFkjNQNmkivBlHIGNqgzBhVK+jrCvUDe0iPH6LH92fMt3vhBH2BfcSr8l9syyedp6o01Q8rUa6GdcDmqnaasF8M4KEWOcYPmF3wKF5sBnc0FsJ0r9ksxJTh7PNP+F7rLKVLdPr75KQS2JLsT4cwTshkIq9UCu1Z5L+q9lo4= X-MS-Office365-Filtering-Correlation-Id: 1540391f-ba69-4360-7e4f-08d41d75e21f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:MWHPR02MB2222; X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2222; 3:4puZHUG730KeiwyvWNHedTjdB6WupfFwPImEM84qXIp81hb7PH40jLDKUZVy4/EkKT2EqaTF7xN+3YRGoYBEb7x5NIw+pVLfPW6iDr+fOYVMcpjbsBZ11R3KY8p/spM2WoYlHMgiZYgKZHuh61P3sJaSGTiI6SPbxePej5bAl1cDJbAmANuol75QA4YUbtMPx6MewHuwR+CI+ZyalRxNey4SywkgMIJ220ZJC7Zp6SC3XAHUQ+/ADNc6dxMKmZasBHkmkXppIRLukLZoqek//ozY9CvesXfQnAwPZaQ2TTEzFubdwnv2OEx+ky/kYDEhzMehnX05liUcAcD4VkKn4y1iz8VWWlijkBPZdSJ5Jfl/vDmUb/icGUvz+hSNMA0Qstg8eggUXiXmb/Wzz+LilQ==; 25:9RejtiGykls8MFvUvT+0o2fnrN3i3f1BCPFckXbKfSuZE6pv5aH7bN0qwnpRB+2Ij3XLZRLm/hQ1Nw0N/z/t8+Jw9y8mK5AvOxZx+7U+5lyV4TOSXhpnYmxhs9Bq1b61gi+4nDORg/T8hcwzYlssor25vlJ5ylp/VpUW7TdlBncsn06RpDFGSIRI8AdeKqkSeRyu3k8hUu/dQjM5pyPwzGKffWV70cvF+BYzKuzWLhnf30FzDmJBgiq89H5RqAbhqK9m+vC1fxn1MVEXAgTAlTp8dI/JLWigRHhWrvywsINWVvKorRIGNR+CFl4Mv15oET9b7SROmzFviJL7FW3S2Y/LK2X8f/WSlyeXscQRBIy1drg9zV7dCQFVj3GyfFaryDUPAineMJTlXvhxtHg+cBQ3rSsQm/vjCgHhY7k3pig0YrLJv7aiHNd/6xjDsvTronCvLB7J2B91yaloUpJbeQ== X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2222; 31:SkfLHoB6YDFzQhrQwmiabqNwKfJ+slzI18l6K7QVIQxOx3qweSMqnPHZjIdtjzWDXIVxPSWPHnAvTbj3gIw4Zu9w/od7AwvRcOvL8wvp7EUWymZlkko7kfK07CL7ErlLFSVVhdhW2rMznbrNJ8zDalUPTpwllpOsOuJ659wJzkQMOrL2lH4iYnY51g11eogBvbxn/t3UHmeuWK/ycpwpCplJdpkNtmffXwiOhqz5y6mhISz1/7p+a8OgYHMe9Mifm0ztnjcfXNd7HssxAbHMvdX5AbKAoiDy75FwMmr4+qw=; 20:hFpTW3dROS8RnXiPABhRAhY2HxPWoXvKKScolJCP6aSC8YeoOfOjK3DrTP+G3siTorIjaW/U+W4ySMnzx9c7vinhoFEtA73TjXuAZXtDr1WLKqpsojgcK6JGW1361nnQJT1eOw8acfiomU028MAZy8bPLDSiOW+8SkoUTVPIJlS4obXEafyhdqN6IVuQLSFkXiMQj9Mf4Ozy7fnAqUXs8lWEssefya/ojTvC1PAy4VF4Z1Q9HRApE2ofaqJQixtuy8MTLAQy2uOlR1dImxnAD7v+4NAThAAf5JcpQVAxafGReO4EaayMiP75CFl5S8XiLUbPgzCjVg3S5t0F9AaEbqhXN06uZZ4QcBuUha21FAvbc+cujwsySGkmg6j5vhUqtbHnN7V7xqXmxCVZ57U8L4Zh7nZ+RBJksBqUOoH2+S7SdfQtGasuFfJVuCoQPmL3FXcP5KKLbDlSZBOGhgcET2DAr/OFzk7xLWdZanQk+0N2VbiLMWYX5tTre7nVGMGL X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123558021)(20161123562025)(6072148); SRVR:MWHPR02MB2222; BCL:0; PCL:0; RULEID:; SRVR:MWHPR02MB2222; X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2222; 4:/+d7HN3KBcj/WF54nfNe4glOMJ7qXEEsX2o/6mvmyJP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i+ADtTy+YdW6AJsxdECgU0dt7cwTRlkQR7z0KszvAt/MSkyl9oNHlpc42rZ09xixZhFsJ03bDVq63VUwDHTCGltD1fAFMYSXI8Rudxx0L3KZztoUGvcp8RyTsOtPBEuNNmG5uJi9Z13oRhshWEiXnCODFtGRl//l+DAhDx8Vm8HxiIttQfTq9IH4a1XCbEZ8bu8+Zp6fIx5rD2B2r2WfvCOOFnUcG7yuvDcWE X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2016 01:19:10.4276 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2222 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch does not change any functionality. Signed-off-by: Bart Van Assche Cc: Eli Cohen --- drivers/infiniband/hw/mlx5/mr.c | 20 ++++++++++---------- drivers/net/ethernet/mellanox/mlx5/core/srq.c | 8 ++++---- drivers/net/ethernet/mellanox/mlx5/core/vport.c | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index 4e9012463c37..3a5707e0d82a 100644 --- a/drivers/infiniband/hw/mlx5/mr.c +++ b/drivers/infiniband/hw/mlx5/mr.c @@ -687,10 +687,10 @@ struct ib_mr *mlx5_ib_get_dma_mr(struct ib_pd *pd, int acc) mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); MLX5_SET(mkc, mkc, access_mode, MLX5_MKC_ACCESS_MODE_PA); - MLX5_SET(mkc, mkc, a, !!(acc & IB_ACCESS_REMOTE_ATOMIC)); - MLX5_SET(mkc, mkc, rw, !!(acc & IB_ACCESS_REMOTE_WRITE)); - MLX5_SET(mkc, mkc, rr, !!(acc & IB_ACCESS_REMOTE_READ)); - MLX5_SET(mkc, mkc, lw, !!(acc & IB_ACCESS_LOCAL_WRITE)); + MLX5_SET(mkc, mkc, a, (acc & IB_ACCESS_REMOTE_ATOMIC) != 0); + MLX5_SET(mkc, mkc, rw, (acc & IB_ACCESS_REMOTE_WRITE) != 0); + MLX5_SET(mkc, mkc, rr, (acc & IB_ACCESS_REMOTE_READ) != 0); + MLX5_SET(mkc, mkc, lw, (acc & IB_ACCESS_LOCAL_WRITE) != 0); MLX5_SET(mkc, mkc, lr, 1); MLX5_SET(mkc, mkc, length64, 1); @@ -1093,14 +1093,14 @@ static struct mlx5_ib_mr *reg_create(struct ib_mr *ibmr, struct ib_pd *pd, /* The pg_access bit allows setting the access flags * in the page list submitted with the command. */ - MLX5_SET(create_mkey_in, in, pg_access, !!(pg_cap)); + MLX5_SET(create_mkey_in, in, pg_access, pg_cap != 0); mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); MLX5_SET(mkc, mkc, access_mode, MLX5_MKC_ACCESS_MODE_MTT); - MLX5_SET(mkc, mkc, a, !!(access_flags & IB_ACCESS_REMOTE_ATOMIC)); - MLX5_SET(mkc, mkc, rw, !!(access_flags & IB_ACCESS_REMOTE_WRITE)); - MLX5_SET(mkc, mkc, rr, !!(access_flags & IB_ACCESS_REMOTE_READ)); - MLX5_SET(mkc, mkc, lw, !!(access_flags & IB_ACCESS_LOCAL_WRITE)); + MLX5_SET(mkc, mkc, a, (access_flags & IB_ACCESS_REMOTE_ATOMIC) != 0); + MLX5_SET(mkc, mkc, rw, (access_flags & IB_ACCESS_REMOTE_WRITE) != 0); + MLX5_SET(mkc, mkc, rr, (access_flags & IB_ACCESS_REMOTE_READ) != 0); + MLX5_SET(mkc, mkc, lw, (access_flags & IB_ACCESS_LOCAL_WRITE) != 0); MLX5_SET(mkc, mkc, lr, 1); MLX5_SET64(mkc, mkc, start_addr, virt_addr); @@ -1696,7 +1696,7 @@ struct ib_mw *mlx5_ib_alloc_mw(struct ib_pd *pd, enum ib_mw_type type, MLX5_SET(mkc, mkc, umr_en, 1); MLX5_SET(mkc, mkc, lr, 1); MLX5_SET(mkc, mkc, access_mode, MLX5_MKC_ACCESS_MODE_KLMS); - MLX5_SET(mkc, mkc, en_rinval, !!((type == IB_MW_TYPE_2))); + MLX5_SET(mkc, mkc, en_rinval, type == IB_MW_TYPE_2); MLX5_SET(mkc, mkc, qpn, 0xffffff); err = mlx5_core_create_mkey(dev->mdev, &mw->mmkey, in, inlen); diff --git a/drivers/net/ethernet/mellanox/mlx5/core/srq.c b/drivers/net/ethernet/mellanox/mlx5/core/srq.c index 3099630015d7..2dee3129f1cd 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/srq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/srq.c @@ -80,8 +80,8 @@ static int get_pas_size(struct mlx5_srq_attr *in) static void set_wq(void *wq, struct mlx5_srq_attr *in) { - MLX5_SET(wq, wq, wq_signature, !!(in->flags - & MLX5_SRQ_FLAG_WQ_SIG)); + MLX5_SET(wq, wq, wq_signature, + (in->flags & MLX5_SRQ_FLAG_WQ_SIG) != 0); MLX5_SET(wq, wq, log_wq_pg_sz, in->log_page_size); MLX5_SET(wq, wq, log_wq_stride, in->wqe_shift + 4); MLX5_SET(wq, wq, log_wq_sz, in->log_size); @@ -93,8 +93,8 @@ static void set_wq(void *wq, struct mlx5_srq_attr *in) static void set_srqc(void *srqc, struct mlx5_srq_attr *in) { - MLX5_SET(srqc, srqc, wq_signature, !!(in->flags - & MLX5_SRQ_FLAG_WQ_SIG)); + MLX5_SET(srqc, srqc, wq_signature, + (in->flags & MLX5_SRQ_FLAG_WQ_SIG) != 0); MLX5_SET(srqc, srqc, log_page_size, in->log_page_size); MLX5_SET(srqc, srqc, log_rq_stride, in->wqe_shift); MLX5_SET(srqc, srqc, log_srq_size, in->log_size); diff --git a/drivers/net/ethernet/mellanox/mlx5/core/vport.c b/drivers/net/ethernet/mellanox/mlx5/core/vport.c index 525f17af108e..ea9076f61b6b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/vport.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/vport.c @@ -539,7 +539,7 @@ int mlx5_modify_nic_vport_node_guid(struct mlx5_core_dev *mdev, MLX5_SET(modify_nic_vport_context_in, in, field_select.node_guid, 1); MLX5_SET(modify_nic_vport_context_in, in, vport_number, vport); - MLX5_SET(modify_nic_vport_context_in, in, other_vport, !!vport); + MLX5_SET(modify_nic_vport_context_in, in, other_vport, vport != 0); nic_vport_context = MLX5_ADDR_OF(modify_nic_vport_context_in, in, nic_vport_context);