Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1823848pxb; Sun, 18 Apr 2021 08:09:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGM3F18953LgcBSVYgXjmQyvx8x3ZBj6lozod1XtPr8o9jJDtct6tV4mTydXYGM8qq9ZFO X-Received: by 2002:a17:903:304b:b029:eb:4cf:8321 with SMTP id u11-20020a170903304bb02900eb04cf8321mr18888422pla.40.1618758583253; Sun, 18 Apr 2021 08:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618758583; cv=none; d=google.com; s=arc-20160816; b=kkD/KaeR28NH5yZPjchuZq55fgf0xUd6/ht0/t4E6JDeRJHs9BqoDFyhMWdEBinP6V TkYnQS6BCfXpuRM6tuveHNJ/yPJpHy3HI8vh+hNtnNMKw6t/eCIuoWrKsQRdmA2Z+SQV Z4QwHC2Q6Oc36BkR51XKWyKZhycbk1cruq9V8bQyiTldJ9UNRagRPNsj4cnDcIC+0tpn IMvInC+RIK0zu4THsJXpqky/VOs2wNODCriY/OKlXdbisLgGQQoIZE9cu12mz84AwUxb ycLSVb3WHLenwh+AvE6gifpHiOpdV3EIHngwQ8w1s8AuU/xwsmMQsXk+qN+zk7ZsnQpD Tt6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=i/KYGADl7+/IqKuzmG1t2Lht8OnViYJW5I8fQMLDOt8=; b=QhPKNZioxWC3q5TvhgnvLfPl6ozoBTj7kxLkJarfGZVj35/xmQOz2IKUVEfqHfRKfZ zH3y7M1MM5FuzKdt1CFF6yEcX8HSR6DbLatGQIOcaPy+or5K72M6D01ncQurXGl1fBeI kIarlnMpV9gU6rLDVw7MZ9wclqtpW/J3XaSfPAFzYGgPmN87N5IgwB85rFSUKcXvWzrG 7jQb6JaSct3un3q5oShh3kQA5Ny1TqpSTpd7VdiG0f+E3ttTZpGE7WINQ680sWWdvTWR QmFUqpUmV2x83hcs5oqHkIBa3MA+pwtS1TPhR/D/7zrXq0vkTuVqdfnZsF/UAV3WKgxr Hdfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z+lGEHBh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh18si12265356pjb.55.2021.04.18.08.09.31; Sun, 18 Apr 2021 08:09:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z+lGEHBh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231820AbhDRPHo (ORCPT + 99 others); Sun, 18 Apr 2021 11:07:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbhDRPHn (ORCPT ); Sun, 18 Apr 2021 11:07:43 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 014FBC06174A; Sun, 18 Apr 2021 08:07:14 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id i3so12006076edt.1; Sun, 18 Apr 2021 08:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=i/KYGADl7+/IqKuzmG1t2Lht8OnViYJW5I8fQMLDOt8=; b=Z+lGEHBhkSmKCt5U6Ml2lsJsoNJIHkKsiG6VQL1VIFOCd/3zGF32737CXNBurS9bmb WYJoqnPgbvrDgtBYNwVb8jd5h+/Q9FmuulobkuSMNa8S8M4mZQ6pEbLtnkPlIN22Ep3H /AoXjzQqD3GDrrETWcDwihkoIR89wrYale8OqztT9T9Qz547ZO2TIZLR1P5A+VrZDX6h YwxwdGUYlsMLomQc6ROkSuk6iJ70Qs38110YRagjVSy5CjVugmUxcYeUZEPeNGy1BErA w8RWxNCzAOiLVsltq4HzrvIEKEXgphwH7CP1yDmXxIP1BmSnpPaEyMK2gynpv+A63aL2 TREQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=i/KYGADl7+/IqKuzmG1t2Lht8OnViYJW5I8fQMLDOt8=; b=KAN+k1lAL5vaYSeAMRzXWDWDaeXQ8lhyVX2R2d50QVY3cbciXZwIX69AV1X90wI3fg DeLbnrbcddXdOzIbZkcJUF7kS8ZGlAcZ4ou5xvSKCN8hxs4C9TobIiujbLKWeQCi1IuM LZOFloaLTQw7ax3fih4eVZSDjRnBmthu+HGMNlUB+HUrKxEp7FJ10qGV/g/mFjromU8L 34ZNsYuqR649/ZVeSwjb++uamK9gCPRzp4miUKQ/Mrhp3w/M9YguQqkMUEXDdREB7BB+ yk2p61c7SWbtIMinJxaLC909RvKZTL6jUE2emJW30yCErKCV67Tf7W09e7TAuVf7E7jV Nq7Q== X-Gm-Message-State: AOAM531X73R1cE4xxec0RczN4GMYm23wHlmqbjIIEYj/6xlbqGvDItbp Ugcw5ymauhYnflImSB31e90= X-Received: by 2002:aa7:ca04:: with SMTP id y4mr20480459eds.72.1618758432791; Sun, 18 Apr 2021 08:07:12 -0700 (PDT) Received: from agape.jhs ([5.171.80.219]) by smtp.gmail.com with ESMTPSA id pv21sm8452660ejb.109.2021.04.18.08.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Apr 2021 08:07:12 -0700 (PDT) Date: Sun, 18 Apr 2021 17:07:09 +0200 From: Fabio Aiuto To: Saurav Girepunje Cc: mchehab@kernel.org, sakari.ailus@linux.intel.com, gregkh@linuxfoundation.org, saurav.girepunje@google.com, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH] media: atomisp: pci: remove unneeded variable 'err' Message-ID: <20210418150708.GA1402@agape.jhs> References: <20210418144323.GA54920@user> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210418144323.GA54920@user> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 18, 2021 at 08:13:23PM +0530, Saurav Girepunje wrote: > Fix the following coccicheck warning: > > drivers/staging/media/atomisp/pci/sh_css_mipi.c:39:5-8: > Unneeded variable: "err". Return "0" on line 44 > > Signed-off-by: Saurav Girepunje > --- > drivers/staging/media/atomisp/pci/sh_css_mipi.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/staging/media/atomisp/pci/sh_css_mipi.c b/drivers/staging/media/atomisp/pci/sh_css_mipi.c > index d5ae7f0b5864..708903a31b08 100644 > --- a/drivers/staging/media/atomisp/pci/sh_css_mipi.c > +++ b/drivers/staging/media/atomisp/pci/sh_css_mipi.c > @@ -36,12 +36,11 @@ ref_count_mipi_allocation[N_CSI_PORTS]; /* Initialized in mipi_init */ > int > ia_css_mipi_frame_specify(const unsigned int size_mem_words, > const bool contiguous) { > - int err = 0; > > my_css.size_mem_words = size_mem_words; > (void)contiguous; > > - return err; > + return 0; > } > > /* > -- > 2.25.1 > > Hi Saurav, this ia_css_mipi_frame_specify seems to be unused. On header file, before the prototype it is said that it could be removed only when all drivers moved to a new API. Is that comment obsolete? thank you, fabio