fs/ubifs/: remove unnecessary new_valid_dev() checks
authorYaowei Bai <bywxiaobai@163.com>
Wed, 21 Oct 2015 22:13:28 +0000 (09:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 5 Nov 2015 05:11:49 +0000 (16:11 +1100)
commitb698ef8eedd39860480f3413a3ff9f076aa13a5e
tree9d98232975225ebca3b107604bcf855acacb2109
parentaabed611bb15d176a843236bb75dcee8d269e56c
fs/ubifs/: remove unnecessary new_valid_dev() checks

new_valid_dev() always returns 1, so the !new_valid_dev() checks are not
needed.  Remove them.

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Acked-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ubifs/dir.c
fs/ubifs/misc.h