Skip to content

Commit

Permalink
media: mc: delete redundant code in __media_device_unregister_entity
Browse files Browse the repository at this point in the history
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 <hbh25y@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
  • Loading branch information
HBh25Y authored and mchehab committed Apr 24, 2022
1 parent dbdc723 commit 282b4d2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/media/mc/mc-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 282b4d2

Please sign in to comment.