Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751189AbdHXCqI (ORCPT ); Wed, 23 Aug 2017 22:46:08 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:23984 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbdHXCqH (ORCPT ); Wed, 23 Aug 2017 22:46:07 -0400 To: "Gustavo A. R. Silva" Cc: James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: lpfc: remove useless code in lpfc_sli4_bsg_link_diag_test From: "Martin K. Petersen" Organization: Oracle Corporation References: <20170822205353.GA17794@embeddedgus> Date: Wed, 23 Aug 2017 22:45:46 -0400 In-Reply-To: <20170822205353.GA17794@embeddedgus> (Gustavo A. R. Silva's message of "Tue, 22 Aug 2017 15:53:53 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 275 Lines: 11 Gustavo, > Remove variable assignments. The value stored in local variable _rc_ > is overwritten at line 2448:rc = > lpfc_sli4_bsg_set_link_diag_state(phba, 0); before it can be used. Applied to 4.14/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering