pinctrl: imx: remove an unnecessary NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Mar 2019 14:40:22 +0000 (17:40 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 8 Apr 2019 11:06:30 +0000 (13:06 +0200)
commitc7df94c64ca20d13ba0b9442e355f80a1f5c3e43
tree19f1ac705d1499a2f03a735566983948beb99580
parent5e73de3413c5e0c104588a197cbd158baa085aca
pinctrl: imx: remove an unnecessary NULL check

The address of "ipctl->pin_regs[pin_id]" can't be NULL.  It's the offset
into an array in the middle of a struct.  This patch removes the check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx.c