projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
834ebbc
)
[media] media: i2c: initialize scalar variables
author
Gustavo A. R. Silva
<
[email protected]
>
Thu, 4 May 2017 00:13:18 +0000
(21:13 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 6 Jun 2017 11:13:15 +0000
(08:13 -0300)
Initialize scalar variables _pid_ and _ver_ to avoid a possible misbehavior.
Addresses-Coverity-ID:
1324239
Addresses-Coverity-ID:
1324240
Signed-off-by: Gustavo A. R. Silva <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/i2c/ov2659.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/ov2659.c
b/drivers/media/i2c/ov2659.c
index 6e6367214d408081f36416a1d8249a75b16fb4fd..58615f836fb711d5d663551e623bdbe2313c886d 100644
(file)
--- a/
drivers/media/i2c/ov2659.c
+++ b/
drivers/media/i2c/ov2659.c
@@
-1308,7
+1308,8
@@
static const struct v4l2_subdev_internal_ops ov2659_subdev_internal_ops = {
static int ov2659_detect(struct v4l2_subdev *sd)
{
struct i2c_client *client = v4l2_get_subdevdata(sd);
- u8 pid, ver;
+ u8 pid = 0;
+ u8 ver = 0;
int ret;
dev_dbg(&client->dev, "%s:\n", __func__);