scsi: libfc: use error code for fc_rport_error()
authorHannes Reinecke <hare@suse.de>
Thu, 13 Oct 2016 13:10:44 +0000 (15:10 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:52 +0000 (17:29 -0500)
commit9f9504a7cdee39e167f0421346ff17568a5f29a0
tree1d030f483d2691be6cc143ea09de9e48969345f5
parent0f4c16a2f41400dba12e5039429e780aa938aa0c
scsi: libfc: use error code for fc_rport_error()

We only ever use the 'fp' argument for fc_rport_error() to
encapsulate the error code, so we can as well do away with that
and pass the error directly.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_rport.c
include/scsi/libfc.h