Home
last modified time | relevance | path

Searched hist:"6 f37e210" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/scsi/libfc/
H A Dfc_disc.c6f37e210 Wed Jul 12 02:30:22 CDT 2017 Dan Carpenter <dan.carpenter@oracle.com> scsi: libfc: pass an error pointer to fc_disc_error()

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.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
6f37e210 Wed Jul 12 02:30:22 CDT 2017 Dan Carpenter <dan.carpenter@oracle.com> scsi: libfc: pass an error pointer to fc_disc_error()

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.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>