Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

[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>

authored by

Hangyu Hua and committed by
Mauro Carvalho Chehab
282b4d26 dbdc7237

-2
-2
drivers/media/mc/mc-device.c
··· 604 604 media_gobj_destroy(&entity->graph_obj); 605 605 606 606 /* invoke entity_notify callbacks to handle entity removal?? */ 607 - 608 - entity->graph_obj.mdev = NULL; 609 607 } 610 608 611 609 int __must_check media_device_register_entity(struct media_device *mdev,