]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Remove unnecessary check before of_node_put()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 3 Feb 2015 10:54:28 +0000 (11:54 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 3 Feb 2015 11:56:54 +0000 (12:56 +0100)
commite0ece15aa4386179326c5a48e44e8535333008ac
tree86c71ebc80316893579cba726c9cb44c0355bca7
parentb4c9e1827899dfe3c2187f0203143c9a53b14560
pwm: Remove unnecessary check before of_node_put()

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

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c