提交 8ac6e995 编写于 作者: M Markus Elfring 提交者: Scott Wood

PowerPC-83xx: Deletion of an unnecessary check before the function call "of_node_put"

The of_node_put() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NScott Wood <scottwood@freescale.com>
上级 fd5f4914
...@@ -162,7 +162,6 @@ int mpc831x_usb_cfg(void) ...@@ -162,7 +162,6 @@ int mpc831x_usb_cfg(void)
iounmap(immap); iounmap(immap);
if (immr_node)
of_node_put(immr_node); of_node_put(immr_node);
/* Map USB SOC space */ /* Map USB SOC space */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册