diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2017-02-01 10:48:06 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-02-08 10:37:14 -0200 |
commit | bed6838f0113ba72c35f14f9027f1db713ab4188 (patch) | |
tree | 84294cf22dafb924d6b553113add2ff99ff52f61 /drivers/media/i2c/et8ek8 | |
parent | 26db4d39064ed7feec873a860bee449b364e2e5b (diff) |
[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>
Diffstat (limited to 'drivers/media/i2c/et8ek8')
-rw-r--r-- | drivers/media/i2c/et8ek8/et8ek8_driver.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/i2c/et8ek8/et8ek8_driver.c b/drivers/media/i2c/et8ek8/et8ek8_driver.c index 8fecf1dc36bc..bec4a563a09c 100644 --- a/drivers/media/i2c/et8ek8/et8ek8_driver.c +++ b/drivers/media/i2c/et8ek8/et8ek8_driver.c @@ -1259,7 +1259,6 @@ et8ek8_registered(struct v4l2_subdev *subdev) { struct et8ek8_sensor *sensor = to_et8ek8_sensor(subdev); struct i2c_client *client = v4l2_get_subdevdata(subdev); - struct v4l2_mbus_framefmt *format; int rval; dev_dbg(&client->dev, "registered!"); @@ -1280,8 +1279,8 @@ et8ek8_registered(struct v4l2_subdev *subdev) goto err_file; } - format = __et8ek8_get_pad_format(sensor, NULL, 0, - V4L2_SUBDEV_FORMAT_ACTIVE); + __et8ek8_get_pad_format(sensor, NULL, 0, V4L2_SUBDEV_FORMAT_ACTIVE); + return 0; err_file: |