]> git.baikalelectronics.ru Git - kernel.git/commit
fs: compat: remove redundant check of nr_segs
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 22 Aug 2016 07:45:59 +0000 (15:45 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 27 Sep 2016 22:47:38 +0000 (18:47 -0400)
commitc4d3f1e2df8ef14d510d020ff99333c76d2fa903
treef502ff9ce4bf2962a72c5b7f47532c8deb631f01
parentf1fdf13a8486e263dde971c6e3869de703f7a020
fs: compat: remove redundant check of nr_segs

nr_segs should never be less than zero as its type
is unsigned long, so let's remove this check.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/compat.c