diff options
author | Cong Wang <amwang@redhat.com> | 2011-11-25 10:14:23 -0500 |
---|---|---|
committer | Cong Wang <xiyou.wangcong@gmail.com> | 2012-03-20 09:48:19 -0400 |
commit | 77dfce076cbd76c04e90abff188d058cdbff78dd (patch) | |
tree | c2f1ac2dd386c68e6bf8dee8d996d0b6e36f9c73 /drivers/scsi/megaraid.c | |
parent | 4679026d783eb5ac90247bc466d66b817b213abf (diff) |
scsi: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'drivers/scsi/megaraid.c')
-rw-r--r-- | drivers/scsi/megaraid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 15eefa1d61fd..4d39a9ffc081 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c | |||
@@ -670,10 +670,10 @@ mega_build_cmd(adapter_t *adapter, Scsi_Cmnd *cmd, int *busy) | |||
670 | struct scatterlist *sg; | 670 | struct scatterlist *sg; |
671 | 671 | ||
672 | sg = scsi_sglist(cmd); | 672 | sg = scsi_sglist(cmd); |
673 | buf = kmap_atomic(sg_page(sg), KM_IRQ0) + sg->offset; | 673 | buf = kmap_atomic(sg_page(sg)) + sg->offset; |
674 | 674 | ||
675 | memset(buf, 0, cmd->cmnd[4]); | 675 | memset(buf, 0, cmd->cmnd[4]); |
676 | kunmap_atomic(buf - sg->offset, KM_IRQ0); | 676 | kunmap_atomic(buf - sg->offset); |
677 | 677 | ||
678 | cmd->result = (DID_OK << 16); | 678 | cmd->result = (DID_OK << 16); |
679 | cmd->scsi_done(cmd); | 679 | cmd->scsi_done(cmd); |