projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libfc: Debug code fixes
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
drivers
/
scsi
/
libfc
/
fc_lport.c
diff --git
a/drivers/scsi/libfc/fc_lport.c
b/drivers/scsi/libfc/fc_lport.c
index
f04d15c
..
e01a298
100644
(file)
--- a/
drivers/scsi/libfc/fc_lport.c
+++ b/
drivers/scsi/libfc/fc_lport.c
@@
-516,7
+516,7
@@
static void fc_lport_recv_rnid_req(struct fc_lport *lport,
* @lport: The local port receiving the LOGO
* @fp: The LOGO request frame
*
* @lport: The local port receiving the LOGO
* @fp: The LOGO request frame
*
- * Locking Note: The lport lock is exected to be held before calling
+ * Locking Note: The lport lock is ex
p
ected to be held before calling
* this function.
*/
static void fc_lport_recv_logo_req(struct fc_lport *lport, struct fc_frame *fp)
* this function.
*/
static void fc_lport_recv_logo_req(struct fc_lport *lport, struct fc_frame *fp)
@@
-1088,7
+1088,7
@@
static void fc_lport_error(struct fc_lport *lport, struct fc_frame *fp)
{
unsigned long delay = 0;
FC_LPORT_DBG(lport, "Error %ld in state %s, retries %d\n",
{
unsigned long delay = 0;
FC_LPORT_DBG(lport, "Error %ld in state %s, retries %d\n",
-
PTR_ERR(fp)
, fc_lport_state(lport),
+
IS_ERR(fp) ? -PTR_ERR(fp) : 0
, fc_lport_state(lport),
lport->retry_count);
if (PTR_ERR(fp) == -FC_EX_CLOSED)
lport->retry_count);
if (PTR_ERR(fp) == -FC_EX_CLOSED)