Unverified Commit df5d1a24 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7143 media: usbtv: Remove useless locks in usbtv_video_free()

parents 07064626 dd60cc2a
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -959,15 +959,8 @@ int usbtv_video_init(struct usbtv *usbtv)

void usbtv_video_free(struct usbtv *usbtv)
{
	mutex_lock(&usbtv->vb2q_lock);
	mutex_lock(&usbtv->v4l2_lock);

	usbtv_stop(usbtv);
	vb2_video_unregister_device(&usbtv->vdev);
	v4l2_device_disconnect(&usbtv->v4l2_dev);

	mutex_unlock(&usbtv->v4l2_lock);
	mutex_unlock(&usbtv->vb2q_lock);

	v4l2_device_put(&usbtv->v4l2_dev);
}