From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Date: Wed, 12 Jul 2017 21:25:42 +0000 Subject: Re: [PATCH] scsi: libfc: pass an error pointer to fc_disc_error() Message-Id: List-Id: References: <20170712073022.e24r3iad7jqxarn6@mwanda> In-Reply-To: <20170712073022.e24r3iad7jqxarn6@mwanda> (Dan Carpenter's message of "Wed, 12 Jul 2017 10:30:22 +0300") MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: Johannes Thumshirn , Robert Love , "James E.J. Bottomley" , "Martin K. Petersen" , fcoe-devel@open-fcoe.org, linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org Dan, > This patch is basically to silence a static checker warning. > > drivers/scsi/libfc/fc_disc.c:326 fc_disc_error() > warn: passing a valid pointer to 'PTR_ERR' > > It doesn't affect runtime because it treats -ENOMEM and a valid pointer > the same. But the documentation says we should be passing an error > pointer. Applied to 4.13/scsi-fixes. Thank you! -- Martin K. Petersen Oracle Linux Engineering