[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4hbwnpv3qw6sxbtgqjraalzh55cg7los6mtddksitcikm4xjgx@wpqa3eqsw7xn>
Date: Tue, 31 Oct 2023 15:31:30 +0530
From: Umang Jain <umang.jain@...asonboard.com>
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: Florian Fainelli <florian.fainelli@...adcom.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@...adcom.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Stefan Wahren <stefan.wahren@...e.com>,
Kieran Bingham <kieran.bingham@...asonboard.com>,
Phil Elwell <phil@...pberrypi.com>,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] staging: vc04_services: remove unnecessary NULL check
Hi Dan,
Thank you for the patch.
On Tue, Oct 31, 2023 at 11:59:34AM +0300, Dan Carpenter wrote:
> We ensured that "service" as non-NULL in the previous if statement so
> there is no need to check again here.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
LGTM,
Reviewed-by: Umang Jain <umang.jain@...asonboard.com>
> ---
> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
> index 39b857da2d42..a0117efa2991 100644
> --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
> +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
> @@ -2040,8 +2040,7 @@ sync_func(void *v)
> continue;
> }
>
> - svc_fourcc = service ? service->base.fourcc
> - : VCHIQ_MAKE_FOURCC('?', '?', '?', '?');
> + svc_fourcc = service->base.fourcc;
>
> vchiq_log_trace(state->dev, VCHIQ_SYNC,
> "Rcvd Msg %s from %p4cc s:%d d:%d len:%d",
> --
> 2.42.0
>
Powered by blists - more mailing lists