Skip to content

Commit

Permalink
[SCSI] libfc: remove unneeded variables in fc_exch_recv_req()
Browse files Browse the repository at this point in the history
fc_exch_recv_req has variables eof, sof, and f_ctl,
which are set but never used.  Delete them.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Joe Eykholt authored and James Bottomley committed Apr 11, 2010
1 parent 03d29bc commit 3b719d0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/scsi/libfc/fc_exch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1241,9 +1241,6 @@ static void fc_exch_recv_req(struct fc_lport *lport, struct fc_exch_mgr *mp,
struct fc_frame_header *fh = fc_frame_header_get(fp);
struct fc_seq *sp = NULL;
struct fc_exch *ep = NULL;
enum fc_sof sof;
enum fc_eof eof;
u32 f_ctl;
enum fc_pf_rjt_reason reject;

/* We can have the wrong fc_lport at this point with NPIV, which is a
Expand All @@ -1260,9 +1257,6 @@ static void fc_exch_recv_req(struct fc_lport *lport, struct fc_exch_mgr *mp,
if (reject == FC_RJT_NONE) {
sp = fr_seq(fp); /* sequence will be held */
ep = fc_seq_exch(sp);
sof = fr_sof(fp);
eof = fr_eof(fp);
f_ctl = ntoh24(fh->fh_f_ctl);
fc_seq_send_ack(sp, fp);

/*
Expand Down

0 comments on commit 3b719d0

Please sign in to comment.