From 50fde22c50d6391aac30c2049502d5da09b9dd6d Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Tue, 12 Aug 2008 18:41:56 -0500 Subject: [PATCH 02/23] libfc: fix return value from fc_seq_exch_abort fc_seq_exch_abort should return -EXXX like the other functions. Signed-off-by: Mike Christie --- drivers/scsi/libfc/fc_exch.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c index 8d0c713..6b4236e 100644 --- a/drivers/scsi/libfc/fc_exch.c +++ b/drivers/scsi/libfc/fc_exch.c @@ -355,7 +355,7 @@ int fc_seq_exch_abort(const struct fc_seq *req_sp) /* * Send the abort on a new sequence if possible. */ - error = ENOMEM; + error = -ENOMEM; sp = fc_seq_start_next(&ep->seq); if (sp) { spin_lock_bh(&ep->ex_lock); @@ -378,9 +378,8 @@ int fc_seq_exch_abort(const struct fc_seq *req_sp) if (fp) { fc_frame_setup(fp, FC_RCTL_BA_ABTS, FC_TYPE_BLS); error = fc_seq_send(ep->lp, sp, fp, FC_FC_END_SEQ); - } else { - error = ENOBUFS; - } + } else + error = -ENOBUFS; } return error; } -- 1.5.5.1