diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-12-11 12:13:23 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 15:19:04 +0100 |
commit | f1fd3289e8c2b99cdf5c1c4426a7d28a809159c2 (patch) | |
tree | 5224b21faa7ae7ae439f719166f4437fed04b3c6 /include/media/media-entity.h | |
parent | [media] DocBook: Move media-framework.txt contents to media-device.h (diff) | |
download | linux-f1fd3289e8c2b99cdf5c1c4426a7d28a809159c2.tar.xz linux-f1fd3289e8c2b99cdf5c1c4426a7d28a809159c2.zip |
[media] media-entity.h: convert media_entity_cleanup to inline
This function was used in the past to free the links
that were allocated by the media controller core.
However, this is not needed anymore. We should likely
get rid of the funcion on some function, but, for now,
let's just convert into an inlined function and let the
compiler to get rid of it.
Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/media-entity.h')
-rw-r--r-- | include/media/media-entity.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h index 031536723d8c..e9bc5857899c 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@ -345,7 +345,8 @@ void media_gobj_remove(struct media_gobj *gobj); int media_entity_pads_init(struct media_entity *entity, u16 num_pads, struct media_pad *pads); -void media_entity_cleanup(struct media_entity *entity); + +static inline void media_entity_cleanup(struct media_entity *entity) {}; __must_check int media_create_pad_link(struct media_entity *source, u16 source_pad, struct media_entity *sink, |