All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] media: mc: delete redundant code in __media_device_unregister_entity
@ 2022-03-31  2:06 Hangyu Hua
  0 siblings, 0 replies; only message in thread
From: Hangyu Hua @ 2022-03-31  2:06 UTC (permalink / raw)
  To: sakari.ailus, laurent.pinchart, mchehab
  Cc: linux-media, linux-kernel, Hangyu Hua

media_gobj_destroy has already set graph_obj.mdev to NULL. There is no need
to set it again.

Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---

v2: Remove an extra newline.

 drivers/media/mc/mc-device.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/media/mc/mc-device.c b/drivers/media/mc/mc-device.c
index cf5e459b1d96..585816e0901c 100644
--- a/drivers/media/mc/mc-device.c
+++ b/drivers/media/mc/mc-device.c
@@ -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;
 }
 
 /**
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-31  2:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31  2:06 [PATCH v2] media: mc: delete redundant code in __media_device_unregister_entity Hangyu Hua

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.