Skip to content

Commit

Permalink
[SCSI] pluto: Don't abuse ->done for internal commands
Browse files Browse the repository at this point in the history
We can simply call the internal done function directly

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Oct 12, 2007
1 parent 311b581 commit 1d0c7c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/pluto.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ int __init pluto_detect(struct scsi_host_template *tpnt)

SCpnt->request->cmd_flags &= ~REQ_STARTED;

SCpnt->done = pluto_detect_done;
SCpnt->request_bufflen = 256;
SCpnt->request_buffer = fcs[i].inquiry;
PLD(("set up %d %08lx\n", i, (long)SCpnt))
Expand Down Expand Up @@ -195,7 +194,7 @@ int __init pluto_detect(struct scsi_host_template *tpnt)
SCpnt = &(fcs[i].cmd);

/* Let FC mid-level free allocated resources */
SCpnt->done (SCpnt);
pluto_detect_scsi_done(SCpnt);

if (!SCpnt->result) {
struct pluto_inquiry *inq;
Expand Down

0 comments on commit 1d0c7c8

Please sign in to comment.