summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-lynxpoint.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-08-08 12:07:51 +0200
committerLinus Walleij <linus.walleij@linaro.org>2014-08-17 09:12:35 -0500
commit8a69155040bf8745a9a95da8cbaab2940b4093d5 (patch)
treeef32eee4ef3c22a000eb0a133c3fc4903ca96894 /drivers/gpio/gpio-lynxpoint.c
parent6dd859508336f0fd078fd62f3b9fe42a32aa38e2 (diff)
downloadlinux-stable-8a69155040bf8745a9a95da8cbaab2940b4093d5.tar.gz
linux-stable-8a69155040bf8745a9a95da8cbaab2940b4093d5.tar.bz2
linux-stable-8a69155040bf8745a9a95da8cbaab2940b4093d5.zip
gpio: delete unneeded test before of_node_put
Of_node_put supports NULL as its argument, so the initial test is not necessary. Suggested by Uwe Kleine-König. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e; @@ -if (e) of_node_put(e); // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-lynxpoint.c')
0 files changed, 0 insertions, 0 deletions