ubifs: check return pointer properly
ubifs_iget() returns error codes encoded in the pointer,
so the NULL check will never be true.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent aab6861 commit 01cbfdfb3f131ba1c8e5286fce5e0c5d482dc569
@Lucas Stach Lucas Stach authored on 6 Jul 2016
Sascha Hauer committed on 7 Jul 2016
Showing 1 changed file
View
fs/ubifs/ubifs.c