From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754277AbdEICSK (ORCPT ); Mon, 8 May 2017 22:18:10 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:22382 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751948AbdEICSJ (ORCPT ); Mon, 8 May 2017 22:18:09 -0400 To: Colin King Cc: "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: pmcraid: remove redundant check to see if request_size is less than zero From: "Martin K. Petersen" Organization: Oracle Corporation References: <20170503162901.3623-1-colin.king@canonical.com> Date: Mon, 08 May 2017 22:18:00 -0400 In-Reply-To: <20170503162901.3623-1-colin.king@canonical.com> (Colin King's message of "Wed, 3 May 2017 17:29:01 +0100") 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: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Colin, > The 2nd check to see if request_size is less than zero is redundant > because the first check takes error exit path on this condition. So, > since it is redundant, remove it. Applied to 4.12/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering