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

!7164 [sync] PR-7143: media: usbtv: Remove useless locks in usbtv_video_free()

parents 4395dbbf 8a98e518
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -962,15 +962,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);
}