pinctrl: zte: fix dereference of 'data' in zx_set_mux()
authorShawn Guo <shawn.guo@linaro.org>
Sat, 1 Jul 2017 03:45:36 +0000 (11:45 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 31 Jul 2017 13:13:09 +0000 (15:13 +0200)
commitb962e2cd357f2a529fe14387092401e6552f43d6
tree4775ebde47fd442c1cf8329311e8cbd5ada72296
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
pinctrl: zte: fix dereference of 'data' in zx_set_mux()

It fixes the following Smatch complaint:

drivers/pinctrl/zte/pinctrl-zx.c:76 zx_set_mux()
warn: variable dereferenced before check 'data' (see line 67)

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: cbff0c4d27f4 ("pinctrl: add ZTE ZX pinctrl driver support")
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/zte/pinctrl-zx.c