Skip to content

Commit

Permalink
vhost: remove the second argument of k[un]map_atomic()
Browse files Browse the repository at this point in the history
Signed-off-by: Cong Wang <amwang@redhat.com>
  • Loading branch information
Cong Wang authored and Cong Wang committed Mar 20, 2012
1 parent ca747d6 commit c6daa7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/vhost/vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,9 +937,9 @@ static int set_bit_to_user(int nr, void __user *addr)
if (r < 0)
return r;
BUG_ON(r != 1);
base = kmap_atomic(page, KM_USER0);
base = kmap_atomic(page);
set_bit(bit, base);
kunmap_atomic(base, KM_USER0);
kunmap_atomic(base);
set_page_dirty_lock(page);
put_page(page);
return 0;
Expand Down

0 comments on commit c6daa7f

Please sign in to comment.