Tag: b7e16ec6e3d2ea0b62cf93a0e849db55f403a871

power: bq2415x_charger: Delete unnecessary checks before the function call “of_node_put”

Author: Markus Elfring <elfring@users.sourceforge.net> 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 Acked-by: Pali Rohár Signed-off-by: Sebastian Reichel — drivers/power/bq2415x_charger.c | 6 ++—- 1 file changed, 2 insertions(+), 4 …

Continue reading