diff options
author | Mike Isely <isely@pobox.com> | 2009-03-06 23:37:58 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:37 -0400 |
commit | 3ab8d295156a43fc2751483d2f82a63c97489f89 (patch) | |
tree | 247df788b6eaba0b65eaf3083e66866bbc0c141e /drivers | |
parent | ae111f76f785eaa350f0172fac68cf5de2e9eae7 (diff) |
V4L/DVB (11185): pvrusb2: Fix uninitialized counter
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 24b7413f5c99..937c85c5c037 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -1979,7 +1979,7 @@ static unsigned int pvr2_copy_i2c_addr_list( | |||
1979 | unsigned short *dst, const unsigned char *src, | 1979 | unsigned short *dst, const unsigned char *src, |
1980 | unsigned int dst_max) | 1980 | unsigned int dst_max) |
1981 | { | 1981 | { |
1982 | unsigned int cnt; | 1982 | unsigned int cnt = 0; |
1983 | if (!src) return 0; | 1983 | if (!src) return 0; |
1984 | while (src[cnt] && (cnt + 1) < dst_max) { | 1984 | while (src[cnt] && (cnt + 1) < dst_max) { |
1985 | dst[cnt] = src[cnt]; | 1985 | dst[cnt] = src[cnt]; |