Skip to content

Commit 96efbab

Browse files
Dan Carpentermpe
authored andcommitted
powerpc/ps3: Remove an unneeded NULL check
Static checkers don't like the inconsistent NULL checking on "ops". This function is only called once and "ops" isn't NULL so the check can be removed. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Geoff Levand <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/ddc3513dc54d15456692c80df49287fe3babe40a.1585340156.git.geoff@infradead.org
1 parent 7ee4174 commit 96efbab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ps3/sys-manager-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void ps3_sys_manager_register_ops(const struct ps3_sys_manager_ops *ops)
3131
{
3232
BUG_ON(!ops);
3333
BUG_ON(!ops->dev);
34-
ps3_sys_manager_ops = ops ? *ops : ps3_sys_manager_ops;
34+
ps3_sys_manager_ops = *ops;
3535
}
3636
EXPORT_SYMBOL_GPL(ps3_sys_manager_register_ops);
3737

0 commit comments

Comments
 (0)