aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/asn1_compiler.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2016-02-25 11:37:40 +0000
committerMark Brown <[email protected]>2016-02-26 02:06:38 +0000
commit14a20428e2e02600195a71ad366c0caef97bf3d4 (patch)
treeb6826679ced4fb7e1da3332f2fdf00261f62c3dd /scripts/asn1_compiler.c
parentspi: master driver to enable RTC on ICPDAS LP-8841 (diff)
downloadkernel-14a20428e2e02600195a71ad366c0caef97bf3d4.tar.gz
kernel-14a20428e2e02600195a71ad366c0caef97bf3d4.zip
spi: lp-8841: return correct error code from probe
The spi_lp8841_rtc_probe() function misses an initialization of the return code when it fails to get its memory resource, as gcc notices: drivers/spi/spi-lp8841-rtc.c: In function 'spi_lp8841_rtc_probe': drivers/spi/spi-lp8841-rtc.c:239:9: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized] This changes the code to propagate the error from devm_ioremap_resource(). Fixes: 7ecbfff6711f ("spi: master driver to enable RTC on ICPDAS LP-8841") Signed-off-by: Arnd Bergmann <[email protected]> Tested-by: Sergei Ianovich <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/asn1_compiler.c')
0 files changed, 0 insertions, 0 deletions