Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2646383ybb; Sun, 22 Mar 2020 04:29:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtn4voTSEQaM5lcCSiTspUFzzH5Ot9yuK2kcgrU4f5FxHYYmLCFZX8v8emQ0BshFGaz/T/C X-Received: by 2002:aca:4991:: with SMTP id w139mr13724462oia.145.1584876561204; Sun, 22 Mar 2020 04:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584876561; cv=none; d=google.com; s=arc-20160816; b=Vw9UP21/kk+X0/1JFaAU4QNTn+ZfhN5dXxtVnpx1m2tPb1NtgTvp0zTP0vOGHbzZOS FLy9gU7dlQ0wp5aVDFuLdqGi8BqgDqsIwpGoE2dLHKYRrVoafpkXsi/DtjYjD4YwGaYA zM0jMFb6+3Zd6iX++WGe56uxYa9qoVuFFe1xtiToUCbHli7dhVEnumJpIWshRWnqaGzk NesVI/TcgEUAGCr5oRt1we/PtfShXKQAXhRozcS3lnJtoAkdweKhGmjCmkfEsLRM9Bs2 8/raFcCEXjibU3zkgQQMKX1Kg2/5C/qZADo6d1MU5ggVDLSJF+WN1lo/fUIRkrBmRZ39 2kFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=okylhigwq30QsSb2hwxF68U8Sb2w7/qE2UdKl+qqoyI=; b=POkqtzqbA5KoBDH1E2zIRkqYflDEXMeD6djCii6acABYOGWoTJwvWLjFG68ZMUfPTw ZWDGoNFnVlZRUkWyIw8UPBNnxKAzCD5YlNVXn3rFUbMPdOU5NPaIKvTkTlZtqu0g65Pe uIJYg1rFJSiNA1U5Ve6q0Vz6An5h0opZMc9jjAHSguGjeb7EDfycRdkJDuDENuZU8TUP l7C0RPduQjrwwteOyS/h6n0Pf+xXWguFrAzwxCkPykWwsfVUvBpV+SU7/lD6UAvKxaul v7IpCvhkH/XkngXoILEqlEDLsGJVKdhcgGK9GDTP4TMIeZuI6ecJPBgAs9NqRCUAL1F+ e0sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tw1uBt6A; 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 p12si6391436otq.62.2020.03.22.04.29.09; Sun, 22 Mar 2020 04:29:21 -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=@kernel.org header.s=default header.b=tw1uBt6A; 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 S1727022AbgCVL0Q (ORCPT + 99 others); Sun, 22 Mar 2020 07:26:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:55566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbgCVL0Q (ORCPT ); Sun, 22 Mar 2020 07:26:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C2D5B20714; Sun, 22 Mar 2020 11:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584876374; bh=OiEurEKKZLz5Mz/S8byIrRQLkbRiNo+3AQ/w5bAcbtc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tw1uBt6AVm9fR0Xz7qaVF5w0nKkfyu1KIAtPS2JdW9IsDUdJb3E9L3+SzE4mvVqeq t9WBALmeuagUxTf8sL7Ooa3/rwIqa2VtVRONMjEhNAHhw8ut6LINCWsqzoduin2/rH m7NuJdJ2b+D3JvG2RRxYywWxTR0EonV6Tw59cXY8= Date: Sun, 22 Mar 2020 12:26:11 +0100 From: Greg Kroah-Hartman To: "John B. Wyatt IV" Cc: outreachy-kernel@googlegroups.com, Julia Lawall , Forest Bond , Quentin Deslandes , Colin Ian King , Malcolm Priestley , Oscar Carter , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: vt6656: remove unneeded variable: ret Message-ID: <20200322112611.GB75383@kroah.com> References: <20200322092303.2518033-1-jbwyatt4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200322092303.2518033-1-jbwyatt4@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 22, 2020 at 02:23:03AM -0700, John B. Wyatt IV wrote: > Remove unneeded variable ret; replace with 0 for the return value. > > Update function documentation (comment) on the return status as > suggested by Julia Lawall . > > Issue reported by coccinelle (coccicheck). > > Signed-off-by: John B. Wyatt IV > --- > drivers/staging/vt6656/card.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/vt6656/card.c b/drivers/staging/vt6656/card.c > index dc3ab10eb630..05b57a2489a0 100644 > --- a/drivers/staging/vt6656/card.c > +++ b/drivers/staging/vt6656/card.c > @@ -716,13 +716,11 @@ int vnt_radio_power_off(struct vnt_private *priv) > * Out: > * none > * > - * Return Value: true if success; otherwise false > + * Return Value: 0 If this always returns something, why have it return anything at all? Why not make this a patch series, doing this, and then fixing up the callers and the function to not return anything. thanks, greg k-h