Re: [PATCH v4] scsi: libfc: Fix passing zero to 'PTR_ERR' warning

2020-09-21 Thread Martin K. Petersen
On Wed, 9 Sep 2020 21:54:32 +0800, YueHaibing wrote: > drivers/scsi/libfc/fc_disc.c:304 > fc_disc_error() warn: passing zero to 'PTR_ERR' > > fp maybe NULL in fc_disc_error(), use PTR_ERR_OR_ZERO to handle this. Applied to 5.10/scsi-queue, thanks! [1/1] scsi: libfc: Fix passing zero to 'PTR_ER

Re: [PATCH v4] scsi: libfc: Fix passing zero to 'PTR_ERR' warning

2020-09-15 Thread Martin K. Petersen
YueHaibing, > drivers/scsi/libfc/fc_disc.c:304 > fc_disc_error() warn: passing zero to 'PTR_ERR' > > fp maybe NULL in fc_disc_error(), use PTR_ERR_OR_ZERO to handle this. Applied to 5.10/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH v4] scsi: libfc: Fix passing zero to 'PTR_ERR' warning

2020-09-09 Thread YueHaibing
drivers/scsi/libfc/fc_disc.c:304 fc_disc_error() warn: passing zero to 'PTR_ERR' fp maybe NULL in fc_disc_error(), use PTR_ERR_OR_ZERO to handle this. Signed-off-by: YueHaibing --- v4: fix error print type v3: use PTR_ERR_OR_ZERO v2: use use IS_ERR in fc_disc_error() --- drivers/scsi/libfc/fc