diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-10-16 11:12:37 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-10-16 11:12:37 +0200 |
commit | 0cde8d9510e242c73b2d68f9949cd3c456c863b4 (patch) | |
tree | 12f2b2fb9de0db6b9293214fcbd790965195fd38 /include/scsi/scsi_cmnd.h | |
parent | use sg helper function in DMA mapping documentation (diff) | |
download | linux-0cde8d9510e242c73b2d68f9949cd3c456c863b4.tar.xz linux-0cde8d9510e242c73b2d68f9949cd3c456c863b4.zip |
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.h | 2 |
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); |