[media] v4l: omap4iss: Remove duplicate video_is_registered() check
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 3 Nov 2013 23:28:24 +0000 (20:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 3 Dec 2013 19:49:26 +0000 (17:49 -0200)
The video_unregister_device() function checks if the video device is
registered before proceeding, remote the duplicate check from the
driver.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/omap4iss/iss_video.c

index ee3005482c48f8c8f574e0ec891404c3650632c1..ccbdecd0114cf6cb42e75db595811ae5a4050809 100644 (file)
@@ -1119,6 +1119,5 @@ int omap4iss_video_register(struct iss_video *video, struct v4l2_device *vdev)
 
 void omap4iss_video_unregister(struct iss_video *video)
 {
-       if (video_is_registered(&video->video))
-               video_unregister_device(&video->video);
+       video_unregister_device(&video->video);
 }