From 11e0f1a89750d0139eecbb41b89d6b2d33a718b6 Mon Sep 17 00:00:00 2001 From: Sylwester Nawrocki Date: Mon, 18 Oct 2010 06:51:35 -0300 Subject: [PATCH] [media] SR030PC30: Avoid use of uninitialized variables Signed-off-by: Mauro Carvalho Chehab --- drivers/media/video/sr030pc30.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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) { -- 2.39.5