]> Git Repo - linux.git/commit - drivers/mfd/sta2x11-mfd.c
mfd: sta2x11-mfd: Fix return value check in sta2x11_mfd_platform_probe()
authorWei Yongjun <[email protected]>
Sat, 7 Dec 2013 06:03:00 +0000 (14:03 +0800)
committerLee Jones <[email protected]>
Tue, 21 Jan 2014 08:28:03 +0000 (08:28 +0000)
commitec9e4ba67e3782d5a9ec12754223a3f611810a93
tree160e7a2be128bf844878a1ebc12a9ae87886de8e
parent328fe79cac65331cbf22c8eefcb2a1f9164974ac
mfd: sta2x11-mfd: Fix return value check in sta2x11_mfd_platform_probe()

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

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
drivers/mfd/sta2x11-mfd.c
This page took 0.042848 seconds and 4 git commands to generate.