commands: menu: check return pointer properly
The called functions return 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 6974c69 commit 435ec2679e4d1bd500b6f1b357392d16e0592f28
@Lucas Stach Lucas Stach authored on 6 Jul 2016
Sascha Hauer committed on 7 Jul 2016
Showing 1 changed file
View
commands/menu.c