Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3701267ybg; Mon, 28 Oct 2019 17:38:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUKLFr7MBh1GjQqI+vwPq9MDmGcAltcNGcZn5MN9xMEX1BB9ueEYATNhpWTmXQlTU5+e0J X-Received: by 2002:a17:906:250e:: with SMTP id i14mr726962ejb.44.1572309504759; Mon, 28 Oct 2019 17:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572309504; cv=none; d=google.com; s=arc-20160816; b=mG8MDZOhJgLryb77Pfv0+taNzEI6b14bAzIF7ggr6vmOAeAcqmhT6K/JmJ2WWcbIKM YMPdoqzX37u5oXaa6bddAuWiRkzoKlXf8oNYq3yNYgSEv0+z/X4FRJaEGgS10R8qyqUX gflcU08oDqu0Vmln/Gmz2SowFN4Hruvt+U9NE8dby3DCbfl+TSMD4LDWzKpWc9IwWPn7 OVhHub3BcxBdyZ4Af9UDtMyxKuSIDvqMlJNcaR0GrySQyH03/BWvgTKUZvi3f2PNYxRB S1t/F74pBPuhL7k1p05ZwbR334LWL2n4sqWIzMhV2z61PH93GN/v49xgbAf+kED1Hmz8 rMSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=lZexrYg0ovFmt3LmUiu8wahz1Nggy3neI3y5HGVDdL8=; b=LMRD4FleD1BVI6Nr9BxnIJNG53CAq2nCzjlWhCuUDfR5+33G+cVJt+I0oI4DMSo25e cDeUarNBvbxma2a9HtUBCvciK/TflCSUQJtd/bAMN2CXe7SXBs/LsuAfAHU6DmQaqSt7 tIyRV7VD4eSgFgrNNijp65hzLD0WvqoC9ggB2TvHWycMjwLQUtvZmh3FhPGPdTPjFfA+ fKQyxNzSMTSfQYkwMVE9vtDb7RKv+VcSzS9e+0uwICVyzg94g45EShEUVlJkOZEyCKHp 3nZq4xtSqRJ7nbdSwsP3GTQ5MO5+zMJir0Dno8fnzsosWHjcy1khJgO2LtOIym3mivIK hWRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si9667464edk.4.2019.10.28.17.38.01; Mon, 28 Oct 2019 17:38:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732112AbfJ1IgF (ORCPT + 99 others); Mon, 28 Oct 2019 04:36:05 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:51440 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732003AbfJ1IgF (ORCPT ); Mon, 28 Oct 2019 04:36:05 -0400 X-IronPort-AV: E=Sophos;i="5.68,239,1569276000"; d="scan'208";a="408749677" Received: from unknown (HELO hadrien) ([91.217.168.176]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Oct 2019 09:36:04 +0100 Date: Mon, 28 Oct 2019 09:36:04 +0100 (CET) From: Julia Lawall X-X-Sender: julia@hadrien To: Dan Carpenter cc: Cristiane Naves , outreachy-kernel@googlegroups.com, devel@driverdev.osuosl.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: octeon: Remove unneeded variable In-Reply-To: <20191028082732.GE1944@kadam> Message-ID: References: <20191026222453.GA14562@cristiane-Inspiron-5420> <20191028082732.GE1944@kadam> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Oct 2019, Dan Carpenter wrote: > On Sat, Oct 26, 2019 at 07:24:53PM -0300, Cristiane Naves wrote: > > Remove unneeded variable used to store return value. Issue found by > > coccicheck. > > > > Signed-off-by: Cristiane Naves > > --- > > drivers/staging/octeon/octeon-stubs.h | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/drivers/staging/octeon/octeon-stubs.h b/drivers/staging/octeon/octeon-stubs.h > > index b07f5e2..d53bd801 100644 > > --- a/drivers/staging/octeon/octeon-stubs.h > > +++ b/drivers/staging/octeon/octeon-stubs.h > > @@ -1387,9 +1387,7 @@ static inline cvmx_pko_status_t cvmx_pko_send_packet_finish(uint64_t port, > > uint64_t queue, union cvmx_pko_command_word0 pko_command, > > union cvmx_buf_ptr packet, cvmx_pko_lock_t use_locking) > > { > > - cvmx_pko_status_t ret = 0; > > - > > - return ret; > > + return 0; > > What is the point of this function anyway? Given that it is in octeon-stubs.h, it seems that the point is to get the code to compile when COMPILE_TEST is set. There is a real definition in arch/mips/include/asm/octeon/cvmx-pko.h julia