]> Git Repo - linux.git/commit - drivers/gpio/gpio-mlxbf2.c
gpio: mlxbf2: fix return value check in mlxbf2_gpio_get_lock_res()
authorWei Yongjun <[email protected]>
Mon, 27 Apr 2020 11:08:29 +0000 (11:08 +0000)
committerLinus Walleij <[email protected]>
Tue, 28 Apr 2020 14:11:16 +0000 (16:11 +0200)
commit66d8ad67aab3bc6f55e7de81565cd0d4875bd851
tree49326f7489b0e651deb8c09c982af58e9b388854
parent1c12857c6722579cd4aca67b21d3e80870a290b1
gpio: mlxbf2: fix return value check in mlxbf2_gpio_get_lock_res()

In case of error, the function devm_ioremap() returns NULL pointer not
ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Signed-off-by: Wei Yongjun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
drivers/gpio/gpio-mlxbf2.c
This page took 0.052343 seconds and 4 git commands to generate.