Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358477
b: refs/heads/master
c: 2c88ae9
h: refs/heads/master
i:
  358475: f6c6ee4
v: v3
  • Loading branch information
Akinobu Mita authored and Vinod Koul committed Jan 8, 2013
1 parent f0cfd16 commit 0e779e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ba151cdf5ac120fc829ee6524fefedc6828947f
refs/heads/master: 2c88ae90939c2ef8ae80b07713b898c577b81598
4 changes: 1 addition & 3 deletions trunk/crypto/async_tx/async_xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ EXPORT_SYMBOL_GPL(async_xor);

static int page_is_zero(struct page *p, unsigned int offset, size_t len)
{
char *a = page_address(p) + offset;
return ((*(u32 *) a) == 0 &&
memcmp(a, a + 4, len - 4) == 0);
return !memchr_inv(page_address(p) + offset, 0, len);
}

static inline struct dma_chan *
Expand Down

0 comments on commit 0e779e2

Please sign in to comment.