aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/of-fpga-region.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2021-11-30 22:11:24 +0000
committerMoritz Fischer <[email protected]>2021-12-03 04:07:17 +0000
commitea59fc1beff1358966b213b4df89aca3f7dec157 (patch)
treef95f0bade9f69225bfa590890658cd53d6b2ae4c /drivers/fpga/of-fpga-region.c
parentfpga: region: Use standard dev_release for class driver (diff)
downloadkernel-ea59fc1beff1358966b213b4df89aca3f7dec157.tar.gz
kernel-ea59fc1beff1358966b213b4df89aca3f7dec157.zip
fpga: stratix10-soc: Do not use ret uninitialized in s10_probe()
Clang warns: drivers/fpga/stratix10-soc.c:431:9: warning: variable 'ret' is uninitialized when used here [-Wuninitialized] return ret; ^~~ ret is only assigned in an error path now so just return 0 directly. Fixes: 4ba0b2c294fe ("fpga: mgr: Use standard dev_release for class driver") Link: https://github.com/ClangBuiltLinux/linux/issues/1517 Reviewed-by: Russ Weight <[email protected]> Reviewed-by: Tom Rix <[email protected]> Acked-by: Xu Yilun <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Moritz Fischer <[email protected]>
Diffstat (limited to 'drivers/fpga/of-fpga-region.c')
0 files changed, 0 insertions, 0 deletions