diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2016-09-10 18:49:01 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-24 21:16:56 +0200 |
commit | 19157003abe4d9ca4706fca8ff8306946f7942c6 (patch) | |
tree | 925dcc80a016009fa1207a63814f354d56c2dcef /drivers/media/rc/ite-cir.c | |
parent | [media] dvb-usb-dvbsky: Add support for TechnoTrend S2-4650 CI (diff) | |
download | linux-19157003abe4d9ca4706fca8ff8306946f7942c6.tar.xz linux-19157003abe4d9ca4706fca8ff8306946f7942c6.zip |
[media] mb86a20s: always initialize a return value
In mb86a20s_read_status_and_stats(), when mb86a20s_read_status() fails,
the function returns the value in variable rc without initializing it
first. Fix this by propagating the error code from variable status_nr.
This bug has been found using clang and -Wsometimes-uninitialized
warning flag.
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/ite-cir.c')
0 files changed, 0 insertions, 0 deletions