commit | 8a69155040bf8745a9a95da8cbaab2940b4093d5 | [log] [tgz] |
---|---|---|
author | Julia Lawall <Julia.Lawall@lip6.fr> | Fri Aug 08 12:07:51 2014 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Sun Aug 17 09:12:35 2014 -0500 |
tree | ef32eee4ef3c22a000eb0a133c3fc4903ca96894 | |
parent | 6dd859508336f0fd078fd62f3b9fe42a32aa38e2 [diff] |
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>