media: mc: delete redundant code in __media_device_unregister_entity
authorHangyu Hua <hbh25y@gmail.com>
Thu, 24 Mar 2022 10:27:52 +0000 (10:27 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 07:14:19 +0000 (08:14 +0100)
commit282b4d26076c773b3d906f0a6937a05cafaecc16
tree1029d87fa008e969e12b7f474cf5f77e5cf237bb
parentdbdc7237ec71316e99c1905264cc00b88e277e57
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>
drivers/media/mc/mc-device.c