Skip to content

Commit

Permalink
net: remove the second argument of k[un]map_atomic()
Browse files Browse the repository at this point in the history
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
  • Loading branch information
Cong Wang authored and Cong Wang committed Mar 20, 2012
1 parent 9b04c5f commit 0352bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/core/kmap_skb.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ static inline void *kmap_skb_frag(const skb_frag_t *frag)

local_bh_disable();
#endif
return kmap_atomic(skb_frag_page(frag), KM_SKB_DATA_SOFTIRQ);
return kmap_atomic(skb_frag_page(frag));
}

static inline void kunmap_skb_frag(void *vaddr)
{
kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ);
kunmap_atomic(vaddr);
#ifdef CONFIG_HIGHMEM
local_bh_enable();
#endif
Expand Down

0 comments on commit 0352bc5

Please sign in to comment.