mfd: ab8500-debugfs: Simplify invalid debugfs data checking
authorLee Jones <lee.jones@linaro.org>
Wed, 2 Jul 2014 10:22:10 +0000 (11:22 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 9 Jul 2014 15:37:45 +0000 (16:37 +0100)
commitc3f27a26b477baf8e32848731e860618e5f48b58
tree5d3c27308c8a44230a18441bd4a532040311ac2c
parentf35563027f4555fee8a6ee5a8c775cbf0c9ad4ef
mfd: ab8500-debugfs: Simplify invalid debugfs data checking

Noticed during a coding review, if we reorganised the checking a
little, we can rid the code of a pointless 'else'.  Whilst looking
for this particular code hunk I noticed another pointless 'else',
which I've subsequently fixed in this patch.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab8500-debugfs.c