Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec62464e authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: atmel-isc: get rid of an unused var



drivers/media/platform/atmel/atmel-isc.c: In function 'isc_async_complete':
drivers/media/platform/atmel/atmel-isc.c:1900:28: warning: variable 'sd_entity' set but not used [-Wunused-but-set-variable]
  struct isc_subdev_entity *sd_entity;
                            ^~~~~~~~~

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent c62cf662
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -1897,7 +1897,6 @@ static int isc_async_complete(struct v4l2_async_notifier *notifier)
{
{
	struct isc_device *isc = container_of(notifier->v4l2_dev,
	struct isc_device *isc = container_of(notifier->v4l2_dev,
					      struct isc_device, v4l2_dev);
					      struct isc_device, v4l2_dev);
	struct isc_subdev_entity *sd_entity;
	struct video_device *vdev = &isc->video_dev;
	struct video_device *vdev = &isc->video_dev;
	struct vb2_queue *q = &isc->vb2_vidq;
	struct vb2_queue *q = &isc->vb2_vidq;
	int ret;
	int ret;
@@ -1910,8 +1909,6 @@ static int isc_async_complete(struct v4l2_async_notifier *notifier)


	isc->current_subdev = container_of(notifier,
	isc->current_subdev = container_of(notifier,
					   struct isc_subdev_entity, notifier);
					   struct isc_subdev_entity, notifier);
	sd_entity = isc->current_subdev;

	mutex_init(&isc->lock);
	mutex_init(&isc->lock);
	init_completion(&isc->comp);
	init_completion(&isc->comp);