Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2632500ybb; Mon, 30 Mar 2020 09:50:57 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvHLZcyr10VpTwcgm5wRLxqskUJh3pj+2Pvd+vuP43AJoxFYgsO1PMjnQ0b5DA30t+eBrHa X-Received: by 2002:a54:4197:: with SMTP id 23mr161930oiy.87.1585587057242; Mon, 30 Mar 2020 09:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585587057; cv=none; d=google.com; s=arc-20160816; b=YQn6NXJUNQwWL8acZJJTR/5AJo4tH5vXkF2Mttk8C4dugA59ai+ZKC1teyY1FqX186 nwFuIUGSZ5bS5aG/RY74CryAf+zK6gG61H0/FVjJZdO3qJF4zAvSlSfqREMB6T0qjXPh n58lxR15iEDPEzMjP62QBlZTRP/5ljym253iw0SImOG6Mg3Q22oqe47anWUCgG9X90kG 8FfhMTZnBfKS9RsJXGvVjuYjPB11RDr7tqKrKqa3lvuawYnrv2wU7oFhRqAO/x6oEWaN JEnr72Ky6s24ix5a25k16GdBFoYptJc9RndmqnHkycmuEhXmLIGaC2pCOLAYZeh4gwf2 tQww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=gx8Kl8+EY+rcRBFr5LGlmy7WmWDFnO/S1WsycTlgciI=; b=XdVhbDIDyqyZwqYgf0XSdKEIJWRBmItFWfORb1GSMwWm+060a8+OgcpIZ85BU4sw8T hRKzhphWnsqUMYsKbKWVVQ3OcyDg82Kn0BNbnofGmlWqGRSlLP3IVvBkFWnfhR3cQ2yl sah01+o86DYY4SxN0gECcojYt3aJuKZvRy8Dof86LnpQXqqWqdiSCvriGohiUFujU3Oi UkiEJiUQRGs+5FxvJNgnpP1nb7Ii2D+TUOBZn6AgKyu6FkowILow/hi/biDO2/2ftL1O BBi2/3DtDChgQIHdChsVxwi12KxwLetW3cEpP7jqY1sb5CzF9f2jMxzKWjyWwJi/tNgD OMaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AlBhFaJp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si1961911oti.55.2020.03.30.09.50.44; Mon, 30 Mar 2020 09:50:57 -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=@gmail.com header.s=20161025 header.b=AlBhFaJp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729640AbgC3Qt1 (ORCPT + 99 others); Mon, 30 Mar 2020 12:49:27 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44385 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727368AbgC3Qt1 (ORCPT ); Mon, 30 Mar 2020 12:49:27 -0400 Received: by mail-pg1-f195.google.com with SMTP id 142so8913805pgf.11 for ; Mon, 30 Mar 2020 09:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=gx8Kl8+EY+rcRBFr5LGlmy7WmWDFnO/S1WsycTlgciI=; b=AlBhFaJpybQjT+Y/R1/ukeYB8p7OXgFWmlij6thTPNfDrjqf12rMx3IRH7bg5p6ql6 DPl8LDEIaW4+x6aiLqi2bR+6/RkniLZ3ajBUCzE65LOdEAtaN4IabsmyA7uJlQSb1cKq eNoUcEN7AWtUXbkSKw5UnubTYhIJWS5NTXeLhQV6MU5LbEbB8B0BV/6T6yGSkrkdcUWY m/3YW5cMULoqZLL0Ujkx+RnuZMAoZuSqlN9SXa/mo0PSrL4XrB+Oz9WF265Ei1ky8n6m wkCy7YZbAWqtbEOXA7RMq9RAuJWnEmggxo/hrORxKeC7u36jH1s4h9cij+ufDWSmSF/A yWoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=gx8Kl8+EY+rcRBFr5LGlmy7WmWDFnO/S1WsycTlgciI=; b=uDhXhIhj+HsZA4s+0h6fEkK2ypT/zE1t7MympNM3Mq/3jU6lpQYMqHlx/LGt0b3lyh owpaBTaavRV8xaj+kQ0NCorY8u4oDhkr31h3hR1I6KKVL9+5OKyhZwub/769q5G11aSy wE8FObX4vjGsP3GZpm7jEVraAxWDnve0VFZfy/tu+SgCNW8EfHn1uz7MfB7ftNCzqn/E QBMs7xgXHtbLTU+31DXeFpwlK32lzIFw79S1BuTOqLUoW9lklCFGMWbkpL4ggYreiBj4 CDyKu/QAG/p3SdigDq9uZ8JugUEZVbW8uBQENcvjhQTtoW2qgfY5nn+P2aWFulR6n9k1 Segw== X-Gm-Message-State: ANhLgQ1/o+ZdcOn6c/vvGlmMquvr0sJzDkOyimQA1SG4NHdxkTy0aBT3 QOKE2lQ4sOvHnTF66eRee5c= X-Received: by 2002:a63:18b:: with SMTP id 133mr13911508pgb.422.1585586965663; Mon, 30 Mar 2020 09:49:25 -0700 (PDT) Received: from ManjaroKDE ([47.144.161.84]) by smtp.gmail.com with ESMTPSA id h4sm10587870pfg.177.2020.03.30.09.49.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 09:49:25 -0700 (PDT) Message-ID: <5bc717b81ae009b5a1e47607f23afd3b3c23b102.camel@gmail.com> Subject: Re: [PATCH v3] staging: vt6656: add error code handling to unused variable From: John Wyatt To: Quentin Deslandes Cc: outreachy-kernel@googlegroups.com, Julia Lawall , Stefano Brivio , Forest Bond , Greg Kroah-Hartman , Colin Ian King , Malcolm Priestley , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Mon, 30 Mar 2020 09:49:19 -0700 In-Reply-To: <20200330154600.GA125210@jiffies> References: <20200329084320.619503-1-jbwyatt4@gmail.com> <20200330154600.GA125210@jiffies> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-03-30 at 16:46 +0100, Quentin Deslandes wrote: > On 03/29/20 01:43:20, John B. Wyatt IV wrote: > > Add error code handling to unused 'ret' variable that was never > > used. > > Return an error code from functions called within > > vnt_radio_power_on. > > > > Issue reported by coccinelle (coccicheck). > > > > Suggested-by: Quentin Deslandes > > Suggested-by: Stefano Brivio > > Signed-off-by: John B. Wyatt IV > > --- > > v3: Forgot to add v2 code changes to commit. > > > > v2: Replace goto statements with return. > > Remove last if check because it was unneeded. > > Suggested-by: Julia Lawall > > Because it's after the comment line (---), this Suggested-by tag will > be > stripped-off when applying the patch. Understood. > If you could fix it, then add my review tag. > > Reviewed-by: Quentin Deslandes > > Thanks, > Quentin Done. Please see v4.