diff options
author | 2015-06-30 14:00:16 +0200 | |
---|---|---|
committer | 2015-07-15 23:59:39 -0600 | |
commit | 9a0cb98589037c0ccb6210f5fd827445b3710c5e (patch) | |
tree | 4971c939bc06ebcf7473fb4b113f6074ce7c93f8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ARM: OMAP2+: sparse: add missing function declarations (diff) | |
download | wireguard-linux-9a0cb98589037c0ccb6210f5fd827445b3710c5e.tar.xz wireguard-linux-9a0cb98589037c0ccb6210f5fd827445b3710c5e.zip |
ARM: OMAP2: Delete an unnecessary check
The of_node_put() function tests whether its argument is NULL and then
returns immediately if so. Furthermore, the kerneldoc for
of_node_put() explicitly supports passing in a NULL pointer as its
argument. 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>
[paul@pwsan.com: dropped the omap_device.c and omap_hwmod.c changes for
now, edited the commit message accordingly and to note the documented
"contract"]
Reviewed-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions