Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp130009rdb; Tue, 31 Oct 2023 03:01:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPDw2qdP/kqqr+zQMCcwdfKvgD4svok3i6pe1Cs9mZj6mYwLUz+ZKitVExaadRIgFcBLTA X-Received: by 2002:a05:6a21:18c:b0:136:faec:a7dc with SMTP id le12-20020a056a21018c00b00136faeca7dcmr15910220pzb.11.1698746516067; Tue, 31 Oct 2023 03:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698746516; cv=none; d=google.com; s=arc-20160816; b=HRBrekLnRAvtXbbInRS2MFd7rIgEeBUQAJh/dVQx+zI9GZhQCEKHQKit8MQUfA9JcF Mh6DmJGaJ++yz1sTnFktbyiwLGzr3HlCr8Ox6B6iUqTfUWDNOlBq2Ibg3I93Zm7dEKBe o5hlnnWuhrWFgNWa2r9gu9AkbCtRH4tl1ECTxPWlKAxm6/dcNCVsLMWlLSygUGwemWOX QDVuQoVhwRpRvJHyx4EGTr93XkeSkDVEm1MSKLQUUzmf/7q9NANklR9aUyLL6TQ/NaVL hMnbS1GitTF8ez0IBd14vDIWFY/Sg//6+jhZIXKOsGuWBG92hzsK1N3/ECpZ7cWvgz+W 9dAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wB/Xokgxa8t6oSRYZXu7Xxa9y1cWAdfNk8pkcsObtiY=; fh=YDUKHG4S0bq4nr2qWA0oVNFP+qnCov1/gmb+yAJq6+E=; b=wedN1obX+c6Sg3HXQBE8IsM7aVqtxNMhpZPnZlR4NljKUOXf+PAcAIHgeC6Vg0/qgC X48z5lwcLafO9U9pOK2Wxgl/iL+uu4yf+wNQu7r79osDhPkkMr4Mct29Dgs67lAD2gI1 m6+v+5b5IQ/MImoyi+D5MClmrVJjfo7/6qPqkYKE4cEBsKbii/e9ngp8bkqyMtf8URIm U5cnKvmp7Y96QU7tc1yezUoDpdhPHBXrOynRoj2wkcfd84SWtPlCfSP2HrMDKo+AKkZQ zMh2LcL65maFca6D3imjAeJwT35HSBp7HnfX43rRvqk1YXvKLBKBvfXSI7JP9+VAB8fE LQcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mObP8r+B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s24-20020a656918000000b005b928c7b284si782985pgq.587.2023.10.31.03.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 03:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mObP8r+B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9D99F80C5CB1; Tue, 31 Oct 2023 03:01:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbjJaKBq (ORCPT + 99 others); Tue, 31 Oct 2023 06:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjJaKBo (ORCPT ); Tue, 31 Oct 2023 06:01:44 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF32F1; Tue, 31 Oct 2023 03:01:42 -0700 (PDT) Received: from umang.jainideasonboard.com (unknown [103.86.18.252]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9F1683D6; Tue, 31 Oct 2023 11:01:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1698746484; bh=Jl+xsisgGaEGcRycAbLfuH+GR5oIKMeZIutbGi45Jio=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mObP8r+Bj16HOBypfv+h8OpHY2GSQr9PdprT/4uCHMoEb+3flzfrcrgb43yBHDPm1 p35eJcn924dFAaPfJcqX+rVY1UzNLsRjq4Xime6MQnTWTNM153BKXXKowxYx6MzYKD uGj9y+cPMozszty+ECAKkEBMDmv4il6hOd0SIKOQ= Date: Tue, 31 Oct 2023 15:31:30 +0530 From: Umang Jain To: Dan Carpenter Cc: Florian Fainelli , Broadcom internal kernel review list , Greg Kroah-Hartman , Stefan Wahren , Kieran Bingham , Phil Elwell , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] staging: vc04_services: remove unnecessary NULL check Message-ID: <4hbwnpv3qw6sxbtgqjraalzh55cg7los6mtddksitcikm4xjgx@wpqa3eqsw7xn> References: <1dff4d9b-d067-4525-95e0-ffdc1185cccd@moroto.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1dff4d9b-d067-4525-95e0-ffdc1185cccd@moroto.mountain> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 31 Oct 2023 03:01:53 -0700 (PDT) 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 LGTM, Reviewed-by: Umang Jain > --- > 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 >