diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-09-09 21:54:32 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-09-15 17:51:39 -0400 |
commit | a9e81c2922bfc4cfe04e33fcbc49ef21e367d7de (patch) | |
tree | c56ac29c646c295c6b4aa25899ac65c9089249df /drivers/scsi/fdomain_pci.c | |
parent | bff8b14b097433c46f142ea8cd8deb910a66d8fc (diff) | |
download | linux-a9e81c2922bfc4cfe04e33fcbc49ef21e367d7de.tar.bz2 |
scsi: libfc: Fix passing zero to 'PTR_ERR' warning
drivers/scsi/libfc/fc_disc.c:304
fc_disc_error() warn: passing zero to 'PTR_ERR'
fp may be NULL in fc_disc_error(), use PTR_ERR_OR_ZERO to handle this.
Link: https://lore.kernel.org/r/20200909135432.36772-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fdomain_pci.c')
0 files changed, 0 insertions, 0 deletions