]> git.karo-electronics.de Git - linux-beck.git/commit
Input: synaptics-rmi4 - do not check for NULL when calling of_node_put()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 25 Jul 2016 18:29:59 +0000 (11:29 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 Jul 2016 19:09:55 +0000 (12:09 -0700)
commit887ec0bfbd146c08e34ccb65a8f4251dc110e52f
tree1c2a6f7d7ee75f4044821265e3e94ead4c7139b8
parent8f97f8e58bd385d3c863a0437eae21a3ca7cc5d8
Input: synaptics-rmi4 - do not check for NULL when calling 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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_bus.c