mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-24 22:55:35 +08:00
media: omap3isp: Call video_unregister_device() unconditionally
video_unregister_device() can be called on a never or an already unregistered device. Drop the redundant check. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
814434984a
commit
dd9a00ab9c
@ -1495,6 +1495,5 @@ int omap3isp_video_register(struct isp_video *video, struct v4l2_device *vdev)
|
||||
|
||||
void omap3isp_video_unregister(struct isp_video *video)
|
||||
{
|
||||
if (video_is_registered(&video->video))
|
||||
video_unregister_device(&video->video);
|
||||
video_unregister_device(&video->video);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user