Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2866007ybb; Mon, 30 Mar 2020 14:47:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvAP4QoB5xiWsKD0QkcQBScbwAnF/UspjFS0VVBfXSWCMlX6Pwrcp3stqgS2tNy9CGgSWxQ X-Received: by 2002:a9d:2c69:: with SMTP id f96mr919934otb.62.1585604874558; Mon, 30 Mar 2020 14:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585604874; cv=none; d=google.com; s=arc-20160816; b=p2Z175iVozjAQaq07hy9vQmoI6chsBj8jM1GhdRtYzssvW+A5rrGgAa0JFDvLhK2Z3 qKuQVWcolHPSsUAd/sXq5kokYTmsIzgT/WwDoKf5jkCaB9exTWXhqLAKRZveZRskAxNN 0etw6tUPOl8rHg9u2PAU/bs37BBGRK3z+dh+PMsYXwanTaEd37w4pRXZ2+l43ssFU2mC +4gr35FXJg8MSQ7DB7T3451ChzyII5f4R+0ach5UJgmWQiC4m++ESj9pkYoHFigIPRvW /H6SYIARNLLnNXAsKugamqsHlXCH1r8VsVJXDswS4WKKziH25EAThF8ETLWHPrrbdGfT 3yfQ== 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=en1IQMIc1TSs5b2IKh+4WaDfSDdVceKaSf3PzbyQVGk=; b=f+vVWxinW0dBq8msVHwdXBkwEtyU6o5E/z9U0HEdgssi5O15VA7vX9OzrpLbQj/jlG U0j+3wC8OK6Yb6d91JaEgQl+5cqM2KHMkFjY/NG2Q4U4dOOv4g9DiUZMRu4oJXdSa7ks euIaED+f1lxIz1IFXJW0Yd+uJZsnhv8LvLBAODVFtZrwL5tHHYE9z8bkArNnljWHdn3f xQrXqceb1MwNGWsAa/uyqNz+GAAeMK6eJR19W6FP2knZUtcVyn+xL/ayPEOT9OjXb8xO KPdXYfhkvapNRke6nt+LtUZ/J0rk1x5n7v9X75FnF7q4BjPiysaz7YUwVAgNHKClqQsy PaeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QYDZvqgy; 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 s139si6208868oih.7.2020.03.30.14.47.42; Mon, 30 Mar 2020 14:47:54 -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=QYDZvqgy; 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 S1729024AbgC3VrV (ORCPT + 99 others); Mon, 30 Mar 2020 17:47:21 -0400 Received: from mail-pj1-f66.google.com ([209.85.216.66]:50198 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728626AbgC3VrV (ORCPT ); Mon, 30 Mar 2020 17:47:21 -0400 Received: by mail-pj1-f66.google.com with SMTP id v13so192029pjb.0 for ; Mon, 30 Mar 2020 14:47:20 -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=en1IQMIc1TSs5b2IKh+4WaDfSDdVceKaSf3PzbyQVGk=; b=QYDZvqgySdojAuttsMOyUaM59cNDeHhD6pD5L2vS9lo2vYP742n43Ujw1Tg+IkNjSW pRH+VgRK6qCCyDXUQZfye0Snj/Eno6WQWXm8dbkZY9LhTvj02sxEljw63gM0iXhtxi+l C8Shy3SisPiKds6rbsVtHoEV87N7zXc6nWlmIW7Snyj2FpD1wLdSxn0mmi2ljNGj67ZX MloEciRVc7nOmgCrZMBlXk4uHqIi4qf3GUCKDCOSdxHWDUsM71CBa8XKycF+QN7mwCS8 KiZaxuR4dT10NUHZD1KeUELRQdKmStLqECScfOAkEu6mXbBWY5Ad+IEmJdSP81M7RrW5 xspw== 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=en1IQMIc1TSs5b2IKh+4WaDfSDdVceKaSf3PzbyQVGk=; b=ipqO49F4HFkyCXy6HjSdSx9kywnLPPWP7WNqlgI6/qXgCx6rKfFCq+Zjz+7uInvraA rM1XhE+ZpFKzsDPXfmVN7jbe0d6q13EW/iDMyw/Q72pKwlTPFFPV+Mqh7uJhpHffUO8o nMIbeiglNHBhIoIh5Fg5wVqCb/3G2t2VgMunFq+J/DLxcjYeCVYV1tevg4mWVO8bW9Rj t1vv1awbTGWl8mYouS2KcShseYalnL8HKJ983bNvJJcmj3+IPlwefmhAVcTFiITt3Dzq 0a1+ztfl9BtuaCS0hBVVi7q4cHa4pWW76jV4w733lK3BPR7ErDnfrRA+B+T3ERHY3yCK Wmmg== X-Gm-Message-State: AGi0PubLh3vIyWGgvWezwDEKhvnASj6PlGOnPZJw3ehkClgh3CYaLcMo b75XQINx4Fd0g4kRwMlhGAY= X-Received: by 2002:a17:90b:8c4:: with SMTP id ds4mr212979pjb.44.1585604840076; Mon, 30 Mar 2020 14:47:20 -0700 (PDT) Received: from OptiPlexFedora ([47.144.161.84]) by smtp.gmail.com with ESMTPSA id z12sm11387743pfj.144.2020.03.30.14.47.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 14:47:19 -0700 (PDT) Message-ID: <5d2cda14795500ae6cc862b98907a7210688269f.camel@gmail.com> Subject: Re: [Outreachy kernel] [PATCH v5] staging: vt6656: add error code handling to unused variable From: "John B. Wyatt IV" To: Stefano Brivio Cc: outreachy-kernel@googlegroups.com, Julia Lawall , Forest Bond , Greg Kroah-Hartman , Quentin Deslandes , Colin Ian King , Malcolm Priestley , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Mon, 30 Mar 2020 14:47:18 -0700 In-Reply-To: <20200330230634.3b905158@elisabeth> References: <20200330184517.33074-1-jbwyatt4@gmail.com> <20200330230634.3b905158@elisabeth> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) 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 23:06 +0200, Stefano Brivio wrote: > On Mon, 30 Mar 2020 11:45:17 -0700 > "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 > > Reviewed-by: Quentin Deslandes > > Signed-off-by: John B. Wyatt IV > > --- > > v5: Remove Suggested-by: Julia Lawall above seperator line. > > Remove break; statement in switch block. > > break; removal checked by both gcc compile and checkpatch. > > > > [...] > > > > @@ -734,14 +738,15 @@ int vnt_radio_power_on(struct vnt_private > > *priv) > > case RF_VT3226: > > case RF_VT3226D0: > > case RF_VT3342A0: > > - vnt_mac_reg_bits_on(priv, MAC_REG_SOFTPWRCTL, > > - (SOFTPWRCTL_SWPE2 | > > SOFTPWRCTL_SWPE3)); > > + ret = vnt_mac_reg_bits_on(priv, MAC_REG_SOFTPWRCTL, > > + (SOFTPWRCTL_SWPE2 | > > + SOFTPWRCTL_SWPE3)); > > break; > > } > > + if (ret) > > + return ret; > > Did you send the wrong version perhaps? > Yes. My apologies. Please see v6.