fnic: pci_dma_mapping_error() doesn't return an error code
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Jul 2016 08:23:59 +0000 (11:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:23:45 +0000 (15:23 +0200)
commit07dc7252685d3368a5ef77da8f28a890ca8a621b
tree924c68535f91f7cbb9b1a856e1aedf641afa16bc
parent7d5130779a6279c4953850e39f5840a31d13fb06
fnic: pci_dma_mapping_error() doesn't return an error code

commit dd7328e4c53649c1c7ec36bc1cf5b229b8662047 upstream.

pci_dma_mapping_error() returns true on error and false on success.

Fixes: fd6ddfa4c1dd ('fnic: check pci_map_single() return value')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/fnic/fnic_fcs.c