mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
[media] et8ek8: Fix compiler / Coccinelle warnings
Fix a compiler warning due to an unused but assigned variable. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
26db4d3906
commit
bed6838f01
@ -1259,7 +1259,6 @@ et8ek8_registered(struct v4l2_subdev *subdev)
|
|||||||
{
|
{
|
||||||
struct et8ek8_sensor *sensor = to_et8ek8_sensor(subdev);
|
struct et8ek8_sensor *sensor = to_et8ek8_sensor(subdev);
|
||||||
struct i2c_client *client = v4l2_get_subdevdata(subdev);
|
struct i2c_client *client = v4l2_get_subdevdata(subdev);
|
||||||
struct v4l2_mbus_framefmt *format;
|
|
||||||
int rval;
|
int rval;
|
||||||
|
|
||||||
dev_dbg(&client->dev, "registered!");
|
dev_dbg(&client->dev, "registered!");
|
||||||
@ -1280,8 +1279,8 @@ et8ek8_registered(struct v4l2_subdev *subdev)
|
|||||||
goto err_file;
|
goto err_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
format = __et8ek8_get_pad_format(sensor, NULL, 0,
|
__et8ek8_get_pad_format(sensor, NULL, 0, V4L2_SUBDEV_FORMAT_ACTIVE);
|
||||||
V4L2_SUBDEV_FORMAT_ACTIVE);
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_file:
|
err_file:
|
||||||
|
Loading…
Reference in New Issue
Block a user