fs/ubifs: remove unnecessary new_valid_dev check
authorYaowei Bai <bywxiaobai@163.com>
Tue, 29 Sep 2015 13:57:33 +0000 (21:57 +0800)
committerRichard Weinberger <richard@nod.at>
Fri, 6 Nov 2015 22:26:48 +0000 (23:26 +0100)
commit86ba9ed928f33cf6afbac433ff03dd8c6a0ceac4
tree693075a3e15930c1eb1293c4eccf8c51cf63f287
parent1cb8f9776c7dcadc57885c6653943511d282633b
fs/ubifs: remove unnecessary new_valid_dev check

As currently new_valid_dev always returns 1, so new_valid_dev check is not
needed, remove it.

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/dir.c
fs/ubifs/misc.h