On Wed, Jul 12, 2017 at 10:30:22AM +0300, Dan Carpenter wrote: > 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. Acked-by: Johannes Thumshirn <jth@xxxxxxxxxx> -- Johannes Thumshirn Storage jthumshirn@xxxxxxx +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850