From e13967d6479ead0be90fa241feb52a776b8481dc Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 30 May 2014 17:10:25 +0200 Subject: Return NULL for default entity types in media_get_default_entity Signed-off-by: Laurent Pinchart --- src/mediactl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mediactl.c') diff --git a/src/mediactl.c b/src/mediactl.c index 4ac2e13..6e2d29a 100644 --- a/src/mediactl.c +++ b/src/mediactl.c @@ -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) -- cgit v1.2.3