Skip to content

Commit

Permalink
edac: 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 237f259 commit 4e5df7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/edac/edac_mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,13 +620,13 @@ static void edac_mc_scrub_block(unsigned long page, unsigned long offset,
if (PageHighMem(pg))
local_irq_save(flags);

virt_addr = kmap_atomic(pg, KM_BOUNCE_READ);
virt_addr = kmap_atomic(pg);

/* Perform architecture specific atomic scrub operation */
atomic_scrub(virt_addr + offset, size);

/* Unmap and complete */
kunmap_atomic(virt_addr, KM_BOUNCE_READ);
kunmap_atomic(virt_addr);

if (PageHighMem(pg))
local_irq_restore(flags);
Expand Down

0 comments on commit 4e5df7c

Please sign in to comment.