[media] media-entity.h: remove redundant macro definition for gobj_to_link()
authorLiu Ying <gnuiyl@gmail.com>
Thu, 11 Aug 2016 05:10:10 +0000 (02:10 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 19:28:32 +0000 (16:28 -0300)
The macro gobj_to_link() is defined twice in media-entity.h.
Let's remove one.

Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
include/media/media-entity.h

index 09b03c17784dbdb2d31c4468dcb9962368e664f0..afd61713ea3b26cdbeb700e50a81faa960c45e1f 100644 (file)
@@ -520,9 +520,6 @@ static inline bool media_entity_enum_intersects(
 #define gobj_to_link(gobj) \
                container_of(gobj, struct media_link, graph_obj)
 
-#define gobj_to_link(gobj) \
-               container_of(gobj, struct media_link, graph_obj)
-
 #define gobj_to_pad(gobj) \
                container_of(gobj, struct media_pad, graph_obj)