Sfoglia il codice sorgente

sh: clkfwk: Convert to IS_ERR_OR_NULL.

Trivial cleanup.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 14 anni fa
parent
commit
225ca45c3c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/sh/clk/core.c

+ 1 - 1
drivers/sh/clk/core.c

@@ -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;
 
 	/*