From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] netxen_nic: set rcode to the return status from the call to netxen_issue_cmd Date: Thu, 11 May 2017 12:16:33 -0400 (EDT) Message-ID: <20170511.121633.1672073434604015576.davem@davemloft.net> References: <20170509161942.32383-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: manish.chopra@cavium.com, rahul.verma@cavium.com, Dept-GELinuxNICDev@cavium.com, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org To: colin.king@canonical.com Return-path: In-Reply-To: <20170509161942.32383-1-colin.king@canonical.com> Sender: kernel-janitors-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Colin King Date: Tue, 9 May 2017 17:19:42 +0100 > From: Colin Ian King > > Currently rcode is being initialized to NX_RCODE_SUCCESS and later it > is checked to see if it is not NX_RCODE_SUCCESS which is never true. It > appears that there is an unintentional missing assignment of rcode from > the return of the call to netxen_issue_cmd() that was dropped in > an earlier fix, so add it in. > > Detected by CoverityScan, CID#401900 ("Logically dead code") > > Fixes: 2dcd5d95ad6b2 ("netxen_nic: fix cdrp race condition") > Signed-off-by: Colin Ian King Applied.