Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753368AbeAJHkR (ORCPT + 1 other); Wed, 10 Jan 2018 02:40:17 -0500 Received: from mail-ve1eur01on0053.outbound.protection.outlook.com ([104.47.1.53]:5792 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753238AbeAJHkM (ORCPT ); Wed, 10 Jan 2018 02:40:12 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonro@mellanox.com; Date: Wed, 10 Jan 2018 09:40:03 +0200 From: Leon Romanovsky To: Colin King Cc: Matan Barak , Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] IB/mlx5: remove redundant assignment of mdev Message-ID: <20180110074003.GG7368@mtr-leonro.local> References: <20180109155543.15027-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vKFfOv5t3oGVpiF+" Content-Disposition: inline In-Reply-To: <20180109155543.15027-1-colin.king@canonical.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [213.57.247.46] X-ClientProxiedBy: VI1P18901CA0009.EURP189.PROD.OUTLOOK.COM (2603:10a6:801::19) To AM6PR0502MB3912.eurprd05.prod.outlook.com (2603:10a6:209:b::33) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: e8c3fd96-ccfd-42dc-5ca8-08d557fd6006 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:AM6PR0502MB3912; X-Microsoft-Exchange-Diagnostics: 1;AM6PR0502MB3912;3:4hqatQU7ZxORuD3wD9s73gI59gQM+86660RMyO4p9aLr7yKbScFJL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ddOcmuTk5bDx2vWH3g6tv//28eNSocyy9Nwh3T2IesM2OUhTyRYwV1U/zUiKY8hdN1Yaa1cMv6nViEdlU//mO9JNk8CHH0QQbpKWMDDUWZLSNCMBuWM3rcJt5VnyYdOmrqZ3Rvwlqif4qUbnuTw6vJ2XXhHspQl33STepsOFzVAMVnmF7gXGpBXpbEhuAtvr7UHN8ECYlZK+D755cn8Ke8e+gY9rLQDd/cMVqbg3xNBVPZCPOPlZntY0US6lkbhqLxEfmeESCSUCMK8F8ow9po6QzwJG;4:01QUTiF2OFxm/YOU7XRVMY4KHJbNAOJ4HOzRwAyKsttxy7acqwdYyY+7V/bdjoYsGaGy4J/l6aRhpp3D9fUKmU2fdyxotuXGfcTCU9uckdZZJ1fJPRufyQyDDbCVmLllBCtpzEuiOXCX5I6aM35/1IiKKUc9cKIwRKz3ww06x2AhZ89BDdLwfblTthXO2wTWnBArvtNfCTdg8FAGqddIIqhRboyb6rb+zTJnHai3m71GxR1xFAa9kYsuwQsgxJeUmuq3w9mZFD/238CEWRFT661zuvZ7jV9gBnBDkkLYabQGNl1gh/g2/PZB6+2RJDK9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(198206253151910); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(10201501046)(3231023)(944501075)(3002001)(93006095)(93001095)(6055026)(6041268)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:AM6PR0502MB3912;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:AM6PR0502MB3912; X-Forefront-PRVS: 0548586081 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(39860400002)(366004)(376002)(346002)(39380400002)(396003)(24454002)(189003)(199004)(5000100001)(25786009)(6666003)(8936002)(6916009)(2950100002)(83506002)(76506005)(4326008)(9686003)(68736007)(98436002)(33656002)(3846002)(106356001)(6116002)(105586002)(1076002)(33896004)(6246003)(97736004)(44144004)(66066001)(8676002)(7736002)(16586007)(86362001)(2906002)(305945005)(76176011)(59450400001)(316002)(386003)(84326002)(5660300001)(54906003)(478600001)(229853002)(53936002)(6496006)(21480400003)(81166006)(6486002)(63394003)(16526018)(52116002)(81156014)(58126008)(18370500001)(2700100001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0502MB3912;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM6PR0502MB3912;23:Fsxus8bc6UGsXFmFx/WLHsWU8xaGfMbJG93dI3W?= =?us-ascii?Q?fsaBO/IHyb21T9PaCNrK4mU/Cx6wsrJd7yQL77b1EDkkKF6mUvMx4wYepiXg?= =?us-ascii?Q?kzWXHHpY9TkSDhJCMRZipdJJwrHdJeYLSnAX1y8W83nyzzf8jOZ7pQrMow4z?= =?us-ascii?Q?hyXjrgAiaxwUuvLRtBDMAAS7G+akN5uZ1fIPioPC8ldQuQFvM+WKGnJpST5i?= =?us-ascii?Q?I1u1kZoj7p46XgfE/C0o1NcFRHXf6EwOrVrpc4wHjk51WiYQqL/BKmkO+SEV?= =?us-ascii?Q?d2jpQCCPuz1MLfQ3/1MzVqBpvXBQ+O/opGhvxIohTubV71cafET2oFfut5jq?= =?us-ascii?Q?pGi1pnCxCsHcezkUOBRGkcPCmehHZzYdYwuEP/RJNVbE82QfaeOhpXo2oLtW?= =?us-ascii?Q?80EdVWaS5h8U4qsPqcxyJMyVjORPENxt1MRyJrWqvTTQ7MnHUXdSxFp25Fo2?= =?us-ascii?Q?JcTj6dyn0iet7nqdH4p+ANI1aTrvO2z4z1G3GLIEuL/mACbDZ5A2PegSMU1v?= =?us-ascii?Q?2fRW5sANVO+YwWPUliaGeCsfYoqk4hzhua0zeFaPFY/O93eoGB7A7pIPnPXM?= =?us-ascii?Q?22tcj1G6KyVluw19QIZKdF1s5WlOy7GyzHwpVQbwihr8phZ5slSIdnPe3VB+?= =?us-ascii?Q?w3JiOJB47L6iZLYLPxgKvqWosCrJf5asJXg5WovWpQngp8KuWQBOfzvNDDCe?= =?us-ascii?Q?Xiiqo71rqXrNIx7AaS9Xt6krok0XNPvYSDEj78aFEYqCFEHeNPiff/2W4Shm?= =?us-ascii?Q?c3awMpLpXBxgBfYV/zHlYfBcPCi4bPv+oaRh2Dr4dr0LqvaLNXoNnB+WeH+U?= =?us-ascii?Q?3OxZ6q8I2MwG3mz9ZCjTQPyCrsASrKD5nNxopJAgI+8UOP5DtHaByMsGDHKw?= =?us-ascii?Q?wtYRtXb3/GzikI0tJPT6X9XBgvVSVUQVj9SrqtNOFNAfKX3NXDTCfwxEF+3D?= =?us-ascii?Q?4jgECBdPigWguJliInPnSBbexH2T+SJ713EGkLgawthcs08xek9nWL2D2Qlu?= =?us-ascii?Q?Q5MzOfwKeFdJBNHz7TNkKvlS1iTb/+WB2te5GN/6a0LTyALxBmxB4XWvDg5S?= =?us-ascii?Q?WkGdatgeckzJpy54hyRQEINhLDRpCjGJCXzULh1LEj9D6YcJJoY7InUle5YM?= =?us-ascii?Q?g/9W8xUOfOUlHLTLAF/JE0KcP9ay3JcyekGEpe2WlUJx+8lJUG717dD9i8CS?= =?us-ascii?Q?3SggWkf2X0UrFUgfx6ISqlsW07gcVTglvMLJt04Y7eV2tpEtS2frgjHop+ke?= =?us-ascii?Q?CMpZzplJudHplVZtz0R3RKvLEcn1WnlFD7D9myAn+4j4YifkIyHiSeMbICZN?= =?us-ascii?Q?W3oUfex+ZVHIskQQpDVZMajclI5Vu892UT54T/J7SaVBPOouO1KgPCQKDssY?= =?us-ascii?Q?mNj7KA5eWWLeTjFftHC6wx0C8+Bg=3D?= X-Microsoft-Exchange-Diagnostics: 1;AM6PR0502MB3912;6:3e6+tUFa1lnqqVlionrbrIso2eFNJlH2uLoZebwG3+LmXz60yV14+TJfsfyDNJdl0yWYnvoJIX3elyz9eiR/uFsykgPb+XvBXwk2RpciQlPNNDwHJrlOC6E8lKQI45zGtefOwPd4sfXbxkAFJ6uADqi4RDvLp1hsTamWIwHIjzm+ZGo4h7OfMeTS9NoNxxwrqjoz9LqgGcYQTGlSmuT7vfCYx6ZkYJIdOFUyAn84uOl5chrTVKR5GpkaX5+ZwTtOZTSNJ+Zt9ovYLKpHzrTOo+vyJoqxGQu260Xn1x2u55h7kDXk7reJHEFlXraLc6lSywWuMXt+1DyNgz1XrTKdtAiMgpg6mlPMZN25ULGDMrk=;5:SUWuXbQGrtUvielWemmDj38831yQzjmfH15zCsTi6j4kCBqmq3Os3So1976KkMZ3h5hxLDJC44Zz7EYQ9h5wQEtLhTkwMzvCYaA9pnp4YH+uyD8f3JQ5dZ5UXpS880QmNdwJ3h771/SKO3RKnNm5fHHuVecLi615q3ilrTdmFgg=;24:10KvVJkjM+QV6Nad6sfvAZJsIAoXkDOHpo748X19JUw2p9H+5vN82Z/iSk8DuiDvvamFd90TkxpPFsmpSFzJmwQxSPDGEKTjuxPoNGnocLk=;7:SvL1jNKs6/2Nx/nlPQz3lamQVp8SlN/pNFHcasBlydHMqtzD0PJP0VZoxeiahZ8sK/C86EWeTQo7VnLgEmhQeJDPzIhw+1U9W7VbNpBw9jQc9uBvLugoiHisuKj/in8kk3JuRTQTFMfL2yTMDmv2RW0Vr/5I+8bye6Yhx0aulw2sGK1OochiWz39bA0e1gn5LTchFhQbuigS90XMLu4TWh2dJEUQ09lZhRmWLqpBo6rOsaFKDED4O5dfHWWKFv+k SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2018 07:40:08.9665 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e8c3fd96-ccfd-42dc-5ca8-08d557fd6006 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0502MB3912 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: --vKFfOv5t3oGVpiF+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 09, 2018 at 03:55:43PM +0000, Colin King wrote: > From: Colin Ian King > > The initial assignment to mdev is redundant as mdev is re-assigned > later and the first assigned value is never read. Remove this > redundant assignment. > > Cleans up clang warning: > drivers/infiniband/hw/mlx5/main.c:359:24: warning: Value stored > to 'mdev' during its initialization is never read > > Signed-off-by: Colin Ian King > --- > drivers/infiniband/hw/mlx5/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Acked-by: Leon Romanovsky --vKFfOv5t3oGVpiF+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkhr/r4Op1/04yqaB5GN7iDZyWKcFAlpVw1MACgkQ5GN7iDZy WKfS8w/+NxORkbTeJkscltbJSDP4eqyxti8nZcylzbPW2xkZpHW3siJzyiOJY692 kYccLEsTGXy3CqvUg/s4IqySQlepJSXhN+OBIC7OOcEQ67ovnF3iLbD6+R+cCczu lf/wg9xczz73H1LrWhWuIBHuch99NRf9JbrBz3I96hwXnZPQ9TaiJJvjHRFKcsVa z66/VT3wShL0xPpwpyz1BOEpGXBcsQiJhbISfm7/kbnZ4sgUJQEli58GCcvhHCEi 14MJetyGAg7fCI3vPs2y1rN7cY2LVZ+Mtt3IR9EPlJG0rDyrIgQdJlh7SMOxw8R4 en4TwTl3h5qk3B1X1AjH2iqeMY6zWoYnJKRa89EZFt7eNN7G28D3oO8nqKBBSL5T 1Hv3Zf0NfCIQi9YbIXu6BFCnCaIXwmIpYaoFy+bIgLb3+1KN3CeSjzJkzxunUNWf p5scM2oiPjC9vDnTKw34dZOje45ugiq8llPNzFLhVOk3Mr0ijNqK1T4Tn188jhCl OHmwhwR9lTnBNLxdhtjIwl7vBTXZQYCXBlbZXvp6Ce1DXjYdMkqvx8pQcWssT24S MDmwxL+CtKjIp3RE+9TeMqQKBFBfPyid8RjCkFsS/WiYC5fUXdisaxbVOfBJ98hi co55jnPQgaGAoFRiE7E5tWeEMGhkbUMTNP+VA4uvyoTq5yVFLoU= =YBBx -----END PGP SIGNATURE----- --vKFfOv5t3oGVpiF+--