aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 10:14:26 -0500
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 09:48:21 -0400
commitc6daa7ffa834c850b3dbb38af6980415caef680d (patch)
treed41226b04d4a06ac613fdd7c4593ec196b803752
parentca747d610b765f184e0662088dd9aeecf9a17822 (diff)
vhost: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
-rw-r--r--drivers/vhost/vhost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index c14c42b95ab8..bdb2d6436b2b 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -937,9 +937,9 @@ static int set_bit_to_user(int nr, void __user *addr)
937 if (r < 0) 937 if (r < 0)
938 return r; 938 return r;
939 BUG_ON(r != 1); 939 BUG_ON(r != 1);
940 base = kmap_atomic(page, KM_USER0); 940 base = kmap_atomic(page);
941 set_bit(bit, base); 941 set_bit(bit, base);
942 kunmap_atomic(base, KM_USER0); 942 kunmap_atomic(base);
943 set_page_dirty_lock(page); 943 set_page_dirty_lock(page);
944 put_page(page); 944 put_page(page);
945 return 0; 945 return 0;