[media] SR030PC30: Avoid use of uninitialized variables
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 18 Oct 2010 09:51:35 +0000 (06:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 13:05:36 +0000 (11:05 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/sr030pc30.c

index ec8d875..c9dc67a 100644 (file)
@@ -326,7 +326,7 @@ static inline struct sr030pc30_info *to_sr030pc30(struct v4l2_subdev *sd)
 static inline int set_i2c_page(struct sr030pc30_info *info,
                               struct i2c_client *client, unsigned int reg)
 {
-       int ret;
+       int ret = 0;
        u32 page = reg >> 8 & 0xFF;
 
        if (info->i2c_reg_page != page && (reg & 0xFF) != 0x03) {