From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 14 Apr 2017 10:22:31 +0200 From: "hch@lst.de" To: Bart Van Assche Cc: "hch@lst.de" , "axboe@kernel.dk" , "linux-block@vger.kernel.org" , "konrad.wilk@oracle.com" , "roger.pau@citrix.com" , "linux-scsi@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "jbacik@fb.com" , "james.smart@broadcom.com" , "dm-devel@redhat.com" Subject: Re: [PATCH 02/25] block: remove the blk_execute_rq return value Message-ID: <20170414082231.GC24901@lst.de> References: <20170406153944.10058-1-hch@lst.de> <20170406153944.10058-3-hch@lst.de> <1492113800.24345.9.camel@sandisk.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1492113800.24345.9.camel@sandisk.com> List-ID: On Thu, Apr 13, 2017 at 08:03:22PM +0000, Bart Van Assche wrote: > That blk_execute_rq() call can only be reached if a few lines above 0 was > assigned to the "error" variable. Since nfsd4_scsi_identify_device() returns > the value of the "error" variable I think -EIO should be assigned to that > variable before the "goto out_put_request" statement is reached. You're right! I'll fix it up.