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

Commit 71c222dc authored by Matthew Wilcox's avatar Matthew Wilcox Committed by James Bottomley
Browse files

[SCSI] sym53c8xx: Remove unnecessary check in queuecommand



The midlayer won't scan the host ID, so we don't need to check.
This is the only caller of sym_xpt_done2, so remove that too.

Signed-off-by: default avatarMatthew Wilcox <willy@linux.intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 39c05d1e
Loading
Loading
Loading
Loading
+1 −17
Original line number Original line Diff line number Diff line
@@ -151,13 +151,6 @@ void sym_xpt_done(struct sym_hcb *np, struct scsi_cmnd *cmd)
	cmd->scsi_done(cmd);
	cmd->scsi_done(cmd);
}
}


static void sym_xpt_done2(struct sym_hcb *np, struct scsi_cmnd *cmd, int cam_status)
{
	sym_set_cam_status(cmd, cam_status);
	sym_xpt_done(np, cmd);
}


/*
/*
 *  Tell the SCSI layer about a BUS RESET.
 *  Tell the SCSI layer about a BUS RESET.
 */
 */
@@ -323,15 +316,6 @@ static int sym_queue_command(struct sym_hcb *np, struct scsi_cmnd *cmd)
	struct sym_ccb *cp;
	struct sym_ccb *cp;
	int	order;
	int	order;


	/*
	 *  Minimal checkings, so that we will not 
	 *  go outside our tables.
	 */
	if (sdev->id == np->myaddr) {
		sym_xpt_done2(np, cmd, DID_NO_CONNECT);
		return 0;
	}

	/*
	/*
	 *  Retrieve the target descriptor.
	 *  Retrieve the target descriptor.
	 */
	 */