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

Commit 506db360 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Tejun Heo
Browse files

libata: remove the done callback from ata_scsi_args



It's always the scsi_done callback, and we can get at that easily
in the place where ->done is called.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent f0a37d12
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -2061,7 +2061,6 @@ struct ata_scsi_args {
	struct ata_device	*dev;
	struct ata_device	*dev;
	u16			*id;
	u16			*id;
	struct scsi_cmnd	*cmd;
	struct scsi_cmnd	*cmd;
	void			(*done)(struct scsi_cmnd *);
};
};


/**
/**
@@ -2140,7 +2139,7 @@ static void ata_scsi_rbuf_fill(struct ata_scsi_args *args,


	if (rc == 0)
	if (rc == 0)
		cmd->result = SAM_STAT_GOOD;
		cmd->result = SAM_STAT_GOOD;
	args->done(cmd);
	cmd->scsi_done(cmd);
}
}


/**
/**
@@ -4357,7 +4356,6 @@ void ata_scsi_simulate(struct ata_device *dev, struct scsi_cmnd *cmd)
	args.dev = dev;
	args.dev = dev;
	args.id = dev->id;
	args.id = dev->id;
	args.cmd = cmd;
	args.cmd = cmd;
	args.done = cmd->scsi_done;


	switch(scsicmd[0]) {
	switch(scsicmd[0]) {
	case INQUIRY:
	case INQUIRY: