diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-08-08 12:07:51 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-08-17 09:12:35 -0500 |
commit | 8a69155040bf8745a9a95da8cbaab2940b4093d5 (patch) | |
tree | ef32eee4ef3c22a000eb0a133c3fc4903ca96894 /include | |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions