This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: mc: delete redundant code in __media_device_unregister_entity
Author:  Hangyu Hua <[email protected]>
Date:    Thu Mar 24 10:27:52 2022 +0000

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

[Sakari Ailus: Remove extra newline, rewrap commit msg]

Signed-off-by: Hangyu Hua <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 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 824d89b325a6..b8176a3b76d3 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;
 }
 
 int __must_check media_device_register_entity(struct media_device *mdev,

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to