From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752028AbdB1DV4 (ORCPT ); Mon, 27 Feb 2017 22:21:56 -0500 Received: from userp1050.oracle.com ([156.151.31.82]:30137 "EHLO userp1050.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751556AbdB1DVt (ORCPT ); Mon, 27 Feb 2017 22:21:49 -0500 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 Subject: Re: [PATCH] scsi: aacraid: remove redundant zero check on ret From: "Martin K. Petersen" Organization: Oracle Corporation References: <20170224144330.6707-1-colin.king@canonical.com> Date: Mon, 27 Feb 2017 22:20:32 -0500 In-Reply-To: <20170224144330.6707-1-colin.king@canonical.com> (Colin King's message of "Fri, 24 Feb 2017 14:43:30 +0000") 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: userp1040.oracle.com [156.151.31.81] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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