power: bq2415x_charger: Delete unnecessary checks before the function call "of_node_put"
commitb7e16ec6e3d2ea0b62cf93a0e849db55f403a871
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 6 Nov 2015 15:48:46 +0000 (6 16:48 +0100)
committerSebastian Reichel <sre@kernel.org>
Sat, 5 Dec 2015 01:04:03 +0000 (5 02:04 +0100)
treef05d08a51e7823607898b35372656d9a48e99653
parent31ade3b83e1821da5fbb2f11b5b3d4ab2ec39db8
power: bq2415x_charger: Delete unnecessary checks before the function call "of_node_put"

The of_node_put() function tests whether its argument is NULL and then
returns immediately. Thus the test around the calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/bq2415x_charger.c