Return NULL for default entity types in media_get_default_entity
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 30 May 2014 15:10:25 +0000 (17:10 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 30 May 2014 15:12:09 +0000 (17:12 +0200)
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
src/mediactl.c

index 4ac2e13..6e2d29a 100644 (file)
@@ -158,6 +158,8 @@ struct media_entity *media_get_default_entity(struct media_device *media,
        case MEDIA_ENT_T_DEVNODE_DVB:
                return media->def.dvb;
        }
+
+       return NULL;
 }
 
 const struct media_device_info *media_get_info(struct media_device *media)