mfd: sm501: Adjust 12 checks for null pointers
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 8 Mar 2018 13:20:06 +0000 (14:20 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commit4202151f5d4ad8df24fdeac8828dc8a21018da3e
tree6d2c0815617c0a2bad7d5ced8bf95f5270ae2a00
parent3eec4faddc92c8347d8cdc616aad4e3906ace186
mfd: sm501: Adjust 12 checks for null pointers

The script “checkpatch.pl” pointed information out like the following.

Comparison to NULL could be written …

Thus fix the affected source code places.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sm501.c