Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3353840ybg; Mon, 28 Oct 2019 11:28:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwujktGpbqCtjPf3w/VJHAAc8zlU50rLPKrr3c3OLcYcUkZY9HxM3LRU/pJe6/Gmng/X8jz X-Received: by 2002:a17:907:20db:: with SMTP id qq27mr10085816ejb.100.1572287321378; Mon, 28 Oct 2019 11:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572287321; cv=none; d=google.com; s=arc-20160816; b=yZ/25U7jdNHsnCYrhkM42Z6Xr0JTWeVY2IkhDEnyVDlT2glCelBoGyg0shK/o2dlbO 1tvrwll4m5zQWiLJFylwymHSIe1vsF88XwWaJ4sTRs4D/700/GeS0Z2rxMCXxrOlTzmK 0FFUESASoO1N3Mcgm1+vaEzJBhq0W0fUXxunBscZqoCZop3Dem4c6q0AQQ2Vq4chJPmJ 85atP0sa1xnJDTFBxE10BFK3cisDs8hdFhDg3S+kyf+Iry/ZIRlMDK7ZHy674yUsTBXs bTy3tzrXiLsYOzEM5kTS5gsAGNlX1VLNBR/Z8gczO/r5zB8a6sZKJIOsPx8n9OpXn7ZM F21Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7o48n+uEPUganz3JjAED7CtR2SsbStGSOoNK4sq0Wgo=; b=zXP5V7HXvPVT5wkicRUkXHYPEebnZeO7AyiL6iu80EOXszTrpDxNQEHN+flLA5pPKY rsYjoKGtvAUkPq527lPSRCIEllj4gL8oF/hIR7+wotyZ3OFVXBQ2fv27HERe4kpnl3WK fIRo4kqaD+BrSAPJDprv+Js7WidVInGuPSYOmDQTuo+dE8psUq5awM3LIG9iLBxfZUVN 7bKSK22IDThjihPhq+MoUqBQ1d4RjksVNt6nZ+o+rkg8koeFA5VBN3YvOTXWs4KbiJ/Q gTrgOScvbxxqGGu1IJaHk4iMbvme8A4Di/f2wZ7Rd3rex8N1cKITM/Aspr5/BHYS4sd0 mcFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=mKkzgyJy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si8048605edf.428.2019.10.28.11.28.16; Mon, 28 Oct 2019 11:28:41 -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; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=mKkzgyJy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733303AbfJ1I15 (ORCPT + 99 others); Mon, 28 Oct 2019 04:27:57 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:39054 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731531AbfJ1I14 (ORCPT ); Mon, 28 Oct 2019 04:27:56 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9S8Oakt028354; Mon, 28 Oct 2019 08:27:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2019-08-05; bh=7o48n+uEPUganz3JjAED7CtR2SsbStGSOoNK4sq0Wgo=; b=mKkzgyJyfrjtOQ45McVAuIaKQEtWTPjrw9bZpKYgSLIQBUSFKkfJ+7xAhCmY7YmCZyLc cCRwJ+zlyLhnPYAc9OrIswmt6Bg791yEl2f+YZ+6E6heT7LP41rVul+77uJBMT/eBt2e VcHe8/PjhRO96XQ1W5r+bpLveCAKHCummfcLMEgqpwyNBCGEInGlTkfkr9Ce67MlpfUd o7KuhhFXAO/MPB7cTUw7+6zRqvowMuv+QzE6/s/QEx6iCG5fmj7t7rK/w6qUacmfzgCI bGoYSZCSvnUcBxqLnEOdjU0YJ/quxJsKeO8REN8d9BSC4K9FlMJ+NAlFbBSvKs7iEBZX bQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2vvdju0cfu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Oct 2019 08:27:47 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9S8Ou1T131667; Mon, 28 Oct 2019 08:27:46 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 2vvykrb2uq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Oct 2019 08:27:46 +0000 Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x9S8Ribl012667; Mon, 28 Oct 2019 08:27:44 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 28 Oct 2019 01:27:44 -0700 Date: Mon, 28 Oct 2019 11:27:32 +0300 From: Dan Carpenter To: Cristiane Naves Cc: outreachy-kernel@googlegroups.com, devel@driverdev.osuosl.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Julia Lawall Subject: Re: [PATCH] staging: octeon: Remove unneeded variable Message-ID: <20191028082732.GE1944@kadam> References: <20191026222453.GA14562@cristiane-Inspiron-5420> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191026222453.GA14562@cristiane-Inspiron-5420> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9423 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910280085 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9423 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910280085 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? regards, dan carpenter