mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 10:34:24 +08:00
sh: clkfwk: Convert to IS_ERR_OR_NULL.
Trivial cleanup. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
facbdce9a2
commit
225ca45c3c
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user