diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2009-09-21 17:02:56 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 07:17:35 -0700 |
commit | b7c46d151cb82856a429709d1227ba1648028232 (patch) | |
tree | b93012b4bb2ffd603c020b38d8f1f6f3b4714ff7 /mm/memory.c | |
parent | bba78819548a59a52e60f0b259997bbd011164ae (diff) | |
download | blackbird-op-linux-b7c46d151cb82856a429709d1227ba1648028232.tar.gz blackbird-op-linux-b7c46d151cb82856a429709d1227ba1648028232.zip |
mm: drop unneeded double negations
Remove double negations where the operand is already boolean.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 05feaa11d87c..3cbeaaba5642 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -599,7 +599,7 @@ copy_one_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm, if (page) { get_page(page); page_dup_rmap(page); - rss[!!PageAnon(page)]++; + rss[PageAnon(page)]++; } out_set_pte: |