]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[media] drxk_hard: fix the return code from an error handler
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Oct 2012 09:58:59 +0000 (07:58 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Oct 2012 10:04:09 +0000 (08:04 -0200)
commit94af1b63d866289aabad0514f5c8ecf223f502fb
tree0db557a6dd96cd3ed444309de2be8aa0b5930d63
parent3fac4eb374b58e834e54a104cce7d0bdecc863c0
[media] drxk_hard: fix the return code from an error handler

While it is very unlikely, if the number of parameters for
QAMDemodulatorCommand is not 2 or 4, status become undefined:

/home/hans/work/build/v4l-dvb-git/drivers/media/dvb-frontends/drxk_hard.c: In function ‘QAMDemodulatorCommand’:
/home/hans/work/build/v4l-dvb-git/drivers/media/dvb-frontends/drxk_hard.c:5452:5: warning: ‘status’ may be used uninitialized in this function [-Wuninitialized]

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