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

Commit dd0daf2a authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB: v4l2-dev: remove unnecessary lock around atomic clear_bit



No need to lock when unregistering the device: clear_bit is already an
atomic operation.

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0eed42e4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -600,9 +600,7 @@ void video_unregister_device(struct video_device *vdev)
	if (!vdev || !video_is_registered(vdev))
		return;

	mutex_lock(&videodev_lock);
	clear_bit(V4L2_FL_REGISTERED, &vdev->flags);
	mutex_unlock(&videodev_lock);
	device_unregister(&vdev->dev);
}
EXPORT_SYMBOL(video_unregister_device);