提交 11e0f1a8 编写于 作者: S Sylwester Nawrocki 提交者: Mauro Carvalho Chehab

[media] SR030PC30: Avoid use of uninitialized variables

Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 c29bc4d7
...@@ -326,7 +326,7 @@ static inline struct sr030pc30_info *to_sr030pc30(struct v4l2_subdev *sd) ...@@ -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, static inline int set_i2c_page(struct sr030pc30_info *info,
struct i2c_client *client, unsigned int reg) struct i2c_client *client, unsigned int reg)
{ {
int ret; int ret = 0;
u32 page = reg >> 8 & 0xFF; u32 page = reg >> 8 & 0xFF;
if (info->i2c_reg_page != page && (reg & 0xFF) != 0x03) { if (info->i2c_reg_page != page && (reg & 0xFF) != 0x03) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册