Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d0c7c8d authored by Matthew Wilcox's avatar Matthew Wilcox Committed by James Bottomley
Browse files

[SCSI] pluto: Don't abuse ->done for internal commands



We can simply call the internal done function directly

Signed-off-by: default avatarMatthew Wilcox <willy@linux.intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 311b581e
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -160,7 +160,6 @@ int __init pluto_detect(struct scsi_host_template *tpnt)
	
	
		SCpnt->request->cmd_flags &= ~REQ_STARTED;
		SCpnt->request->cmd_flags &= ~REQ_STARTED;
		
		
		SCpnt->done = pluto_detect_done;
		SCpnt->request_bufflen = 256;
		SCpnt->request_bufflen = 256;
		SCpnt->request_buffer = fcs[i].inquiry;
		SCpnt->request_buffer = fcs[i].inquiry;
		PLD(("set up %d %08lx\n", i, (long)SCpnt))
		PLD(("set up %d %08lx\n", i, (long)SCpnt))
@@ -195,7 +194,7 @@ int __init pluto_detect(struct scsi_host_template *tpnt)
		SCpnt = &(fcs[i].cmd);
		SCpnt = &(fcs[i].cmd);
		
		
		/* Let FC mid-level free allocated resources */
		/* Let FC mid-level free allocated resources */
		SCpnt->done (SCpnt);
		pluto_detect_scsi_done(SCpnt);
		
		
		if (!SCpnt->result) {
		if (!SCpnt->result) {
			struct pluto_inquiry *inq;
			struct pluto_inquiry *inq;