]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
/dev/mem: remove redundant test on len
authorWu Fengguang <fengguang.wu@intel.com>
Tue, 15 Dec 2009 01:57:57 +0000 (17:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:11 +0000 (08:53 -0800)
commit4ea2f43f28e30050bc99fe3134b6b679f3bf5b22
tree1b0d50312a85a642b66d971406e9d8b0894250e4
parent659ace584e7a9fdda872eab4d6d7be1e0afb6cae
/dev/mem: remove redundant test on len

The len test in write_kmem() is always true, so can be reduced.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Acked-by: Andi Kleen <ak@linux.intel.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mem.c