diff options
author | Frank Chen <frankc@nvidia.com> | 2012-10-26 14:32:46 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-10-29 16:43:39 -0700 |
commit | b35f06f5d1e70f5584596678bc273fa2f13a01ec (patch) | |
tree | 997f3aa832dc856ebb5d0a9def4363fb44eb122c /drivers/media/video/tegra | |
parent | d97d4eca0ad00542fa7b321940e8e563ab98ccbc (diff) |
media: video: tegra: ov9772: fix Coverity error
Fix incorrect sizeof expression.
Bug 1055065
Change-Id: I735c3df49024d240f8d029a753e3ffa90b953665
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/159286
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'drivers/media/video/tegra')
-rw-r--r-- | drivers/media/video/tegra/ov9772.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tegra/ov9772.c b/drivers/media/video/tegra/ov9772.c index bd69526d4bf1..61d1d6e448e4 100644 --- a/drivers/media/video/tegra/ov9772.c +++ b/drivers/media/video/tegra/ov9772.c @@ -1303,7 +1303,7 @@ static int ov9772_param_rd(struct ov9772_info *info, unsigned long arg) if (!info->sdata.sensor_id_minor) ov9772_dev_id(info); data_ptr = &info->sdata.sensor_id; - data_size = sizeof(info->sdata.sensor_id * 2); + data_size = sizeof(info->sdata.sensor_id) * 2; dev_dbg(&info->i2c_client->dev, "%s DEV_ID: %x-%x\n", __func__, info->sdata.sensor_id, info->sdata.sensor_id_minor); |