From: Markus Elfring Date: Tue, 30 Jun 2015 12:00:16 +0000 (+0200) Subject: ARM: OMAP2: Delete an unnecessary check X-Git-Tag: omap-for-v4.3/soc-signed~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a0cb98589037c0ccb6210f5fd827445b3710c5e;p=pandora-kernel.git 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 [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 Signed-off-by: Paul Walmsley --- Reading git-diff-tree failed