Commit 20e01b26 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

[media] cx231xx: silence uninitialized variable warning

We print an uninitialized "actlen" variable on the error path.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 079dda54
...@@ -752,7 +752,8 @@ EXPORT_SYMBOL_GPL(cx231xx_set_mode); ...@@ -752,7 +752,8 @@ EXPORT_SYMBOL_GPL(cx231xx_set_mode);
int cx231xx_ep5_bulkout(struct cx231xx *dev, u8 *firmware, u16 size) int cx231xx_ep5_bulkout(struct cx231xx *dev, u8 *firmware, u16 size)
{ {
int errCode = 0; int errCode = 0;
int actlen, ret = -ENOMEM; int actlen = -1;
int ret = -ENOMEM;
u32 *buffer; u32 *buffer;
buffer = kzalloc(4096, GFP_KERNEL); buffer = kzalloc(4096, GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment