diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2010-10-18 05:51:35 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 09:05:36 -0400 |
commit | 11e0f1a89750d0139eecbb41b89d6b2d33a718b6 (patch) | |
tree | beb607f3a064653dba171d49f747dca6ca48b4e7 /drivers/media/video | |
parent | c29bc4d77d530af27d066d54e9d2c612dd1b9018 (diff) |
[media] SR030PC30: Avoid use of uninitialized variables
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/sr030pc30.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/sr030pc30.c b/drivers/media/video/sr030pc30.c index ec8d875106dd..c9dc67aba980 100644 --- a/drivers/media/video/sr030pc30.c +++ b/drivers/media/video/sr030pc30.c | |||
@@ -326,7 +326,7 @@ static inline struct sr030pc30_info *to_sr030pc30(struct v4l2_subdev *sd) | |||
326 | static inline int set_i2c_page(struct sr030pc30_info *info, | 326 | static inline int set_i2c_page(struct sr030pc30_info *info, |
327 | struct i2c_client *client, unsigned int reg) | 327 | struct i2c_client *client, unsigned int reg) |
328 | { | 328 | { |
329 | int ret; | 329 | int ret = 0; |
330 | u32 page = reg >> 8 & 0xFF; | 330 | u32 page = reg >> 8 & 0xFF; |
331 | 331 | ||
332 | if (info->i2c_reg_page != page && (reg & 0xFF) != 0x03) { | 332 | if (info->i2c_reg_page != page && (reg & 0xFF) != 0x03) { |