From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH] scsi: aacraid: remove redundant zero check on ret Date: Mon, 27 Feb 2017 22:20:32 -0500 Message-ID: References: <20170224144330.6707-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20170224144330.6707-1-colin.king@canonical.com> (Colin King's message of "Fri, 24 Feb 2017 14:43:30 +0000") Sender: linux-kernel-owner@vger.kernel.org To: Colin King Cc: Adaptec OEM Raid Solutions , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-scsi@vger.kernel.org >>>>> "Colin" == Colin King writes: Colin, Colin> The check for ret being zero is redundant as a few statements Colin> earlier we break out of the while loop if ret is non-zero. Thus Colin> we can remove the zero check and also the dead-code non-zero case Colin> too. Applied to 4.11/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering