]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: media/az6027: handle -EIO failure
authorDan Carpenter <error27@gmail.com>
Tue, 4 May 2010 12:31:13 +0000 (09:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:59:05 +0000 (12:59 -0300)
commit9aca6a0a763f31bb72250edf53cfc4fbc015aab3
treeac35097a920ca9026c183be87d525a3e60d4a0f9
parentcdfb73d154705ded5e20dc58e8e1abfae2f4b4f2
V4L/DVB: media/az6027: handle -EIO failure

If the az6027_usb_in_op() returns a negative errno ret is -EIO and in
that case the value of b[0] may be undefined.  The original code
assigned 0 to ret, but since it's already 0 now we can skip that.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/az6027.c