[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yjx2Xm7JmS+E8d7M@pendragon.ideasonboard.com>
Date: Thu, 24 Mar 2022 15:47:10 +0200
From: Laurent Pinchart <laurent.pinchart@...asonboard.com>
To: Hangyu Hua <hbh25y@...il.com>
Cc: sakari.ailus@...ux.intel.com, mchehab@...nel.org,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] media: mc: delete redundant code in
__media_device_unregister_entity
Hi Hangyu,
Thank you for the patch.
On Thu, Mar 24, 2022 at 06:27:52PM +0800, Hangyu Hua wrote:
> 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@...il.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@...asonboard.com>
> ---
> drivers/media/mc/mc-device.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/media/mc/mc-device.c b/drivers/media/mc/mc-device.c
> index cf5e459b1d96..7727c619043e 100644
> --- a/drivers/media/mc/mc-device.c
> +++ b/drivers/media/mc/mc-device.c
> @@ -605,7 +605,6 @@ static void __media_device_unregister_entity(struct media_entity *entity)
>
> /* invoke entity_notify callbacks to handle entity removal?? */
>
> - entity->graph_obj.mdev = NULL;
> }
>
> /**
--
Regards,
Laurent Pinchart
Powered by blists - more mailing lists