Skip to content

Commit

Permalink
[media] SR030PC30: Avoid use of uninitialized variables
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent c29bc4d commit 11e0f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/sr030pc30.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 11e0f1a

Please sign in to comment.