media: mc: delete redundant code in __media_device_unregister_entity
Subsystems (2)
PATCH v2 1/1 media: mc: delete redundant code in __media_device_unregister_entity
media_gobj_destroy has already set graph_obj.mdev to NULL. There is no need to set it again.
Signed-off-by Hangyu Hua <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
---
v2: Remove an extra newline.
drivers/media/mc/mc-device.c | 2 -- 1 file changed, 2 deletions(-)
drivers/media/mc/mc-device.c +0 -2
@@ -604,8 +604,6 @@ static void __media_device_unregister_entity(struct media_entity *entity)media_gobj_destroy (&entity->graph_obj);/* invoke entity_notify callbacks to handle entity removal?? */ - - entity->graph_obj.mdev =NULL ; }/**
Signature · 1 line
2.25.1