sh: clkfwk: Convert to IS_ERR_OR_NULL.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 24 Jun 2011 08:35:40 +0000 (17:35 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 24 Jun 2011 08:35:40 +0000 (17:35 +0900)
Trivial cleanup.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/clk/core.c

index ebeaa9e..229ad09 100644 (file)
@@ -396,7 +396,7 @@ int clk_register(struct clk *clk)
 {
        int ret;
 
-       if (clk == NULL || IS_ERR(clk))
+       if (IS_ERR_OR_NULL(clk))
                return -EINVAL;
 
        /*