of: Delete an unnecessary check before the function call "of_node_put"
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 19 Jul 2016 20:42:22 +0000 (22:42 +0200)
committerRob Herring <robh@kernel.org>
Tue, 9 Aug 2016 17:36:27 +0000 (12:36 -0500)
commitbeab47d55b883e85bec7771a899ac791c6f92c80
treed833875e56de6d384ba03ee964f325d4664ed3be
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
of: Delete an unnecessary check 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 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: Rob Herring <robh@kernel.org>
drivers/of/base.c