aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2023-03-27 20:16:06 +0200
committerGreg Kroah-Hartman <[email protected]>2023-03-28 08:23:54 +0200
commitcf34b880a66e3581300b997df25a7c12f7cfe7d7 (patch)
treee0baf25bbcd6a18eafac2bd35ea652c43d9058db /drivers/fpga/fpga-mgr.c
parent5c9a27df4eb9a402770d5547af255a765e1c10ac (diff)
powerpc/fsl: fix compiler warning in fsl_wakeup_sys_init()
Commit c93bd175414a ("powerpc/fsl: move to use bus_get_dev_root()") changed to use bus_get_dev_root() but didn't consider that the function can fail and return an uninitialized value of ret (hint, the function can never fail, but the compiler doesn't know that.) Fix this up by setting ret to -EINVAL just in case something really goes wrong with the call to bus_get_dev_root(). Cc: Michael Ellerman <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: [email protected] Fixes: c93bd175414a ("powerpc/fsl: move to use bus_get_dev_root()") Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions