]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] drxk: fix warning: ‘status’ may be used uninitialized in this function
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 3 Jul 2011 21:21:59 +0000 (18:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 10 Jul 2011 19:38:11 +0000 (16:38 -0300)
commit6cdeecc1a8f2894e708c7c1ad839b8c76f313801
tree0dcb3abd590bb31eaa55e0b98784b5c5e02ebb73
parent439e9acdc43fc77b693da867102247904ecbac97
[media] drxk: fix warning: ‘status’ may be used uninitialized in this function

One of the problems of the old CHECK_ERROR is that it was hiding
the status parameter. Maybe due to that, on a few places, the return
code might lead to return incorrect status:

drivers/media/dvb/frontends/drxk_hard.c: In function ‘load_microcode.clone.0’:
drivers/media/dvb/frontends/drxk_hard.c:1281: warning: ‘status’ may be used uninitialized in this function
drivers/media/dvb/frontends/drxk_hard.c:1281: note: ‘status’ was declared here
drivers/media/dvb/frontends/drxk_hard.c: In function ‘GetLockStatus’:
drivers/media/dvb/frontends/drxk_hard.c:1792: warning: ‘status’ may be used uninitialized in this function
drivers/media/dvb/frontends/drxk_hard.c: In function ‘Start.clone.7’:
drivers/media/dvb/frontends/drxk_hard.c:1734: warning: ‘status’ may be used uninitialized in this function

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/drxk_hard.c