Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <dan.carpenter@oracle.com>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ddc3513dc54d15456692c80df49287fe3babe40a.1585340156.git.geoff@infradead.org

authored by

Dan Carpenter and committed by
Michael Ellerman
96efbab9 7ee41749

+1 -1
+1 -1
drivers/ps3/sys-manager-core.c
··· 31 31 { 32 32 BUG_ON(!ops); 33 33 BUG_ON(!ops->dev); 34 - ps3_sys_manager_ops = ops ? *ops : ps3_sys_manager_ops; 34 + ps3_sys_manager_ops = *ops; 35 35 } 36 36 EXPORT_SYMBOL_GPL(ps3_sys_manager_register_ops); 37 37