summaryrefslogtreecommitdiff
path: root/include/scsi/scsi_cmnd.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-10-16 13:12:37 +0400
committerJens Axboe <jens.axboe@oracle.com>2007-10-16 13:12:37 +0400
commit0cde8d9510e242c73b2d68f9949cd3c456c863b4 (patch)
tree12f2b2fb9de0db6b9293214fcbd790965195fd38 /include/scsi/scsi_cmnd.h
parent4c2f6d4c282c4d5210221697b9895ad90bc697cb (diff)
downloadlinux-0cde8d9510e242c73b2d68f9949cd3c456c863b4.tar.xz
scsi: simplify scsi_free_sgtable()
Just pass in the command, no point in passing in the scatterlist and scatterlist pool index seperately. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/scsi/scsi_cmnd.h')
-rw-r--r--include/scsi/scsi_cmnd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h
index 3b0bb6680e62..a5439a4b8f97 100644
--- a/include/scsi/scsi_cmnd.h
+++ b/include/scsi/scsi_cmnd.h
@@ -129,7 +129,7 @@ extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count,
extern void scsi_kunmap_atomic_sg(void *virt);
extern struct scatterlist *scsi_alloc_sgtable(struct scsi_cmnd *, gfp_t);
-extern void scsi_free_sgtable(struct scatterlist *, int);
+extern void scsi_free_sgtable(struct scsi_cmnd *);
extern int scsi_dma_map(struct scsi_cmnd *cmd);
extern void scsi_dma_unmap(struct scsi_cmnd *cmd);