drivers/char/mem.c: clean up the code
authorChangli Gao <xiaosuo@gmail.com>
Wed, 23 Mar 2011 23:42:58 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:40 +0000 (19:46 -0700)
commitcfaf346cb2741ca648d83527df173b759381e607
tree578b3d6ce766950fb20f29839c6fbae5aad41a36
parent115bcd156a7c4b4dad950f3bd2e4d023688c2ee7
drivers/char/mem.c: clean up the code

Reduce the lines of code and simplify the logic.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mem.c