Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4520292ybb; Mon, 23 Mar 2020 23:46:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs2Yr/V2PdPWT/GEvpW/HSdM9wOUd28hPUMVXBTyNZbOKKYkKSrcKNWx9G2bYDRU9Bb2Q4k X-Received: by 2002:a4a:9cd8:: with SMTP id d24mr1549756ook.84.1585032411731; Mon, 23 Mar 2020 23:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585032411; cv=none; d=google.com; s=arc-20160816; b=LHKLYMihHuwPFmq/FsfvzabfC1rZAM1dATwMV6XdOCqeITbC4EspZ313TtB29/Gglq ubtmTag4ZdE+rQsSvofKQekcZktYxvwd5lpXIqLUzjk83XuuQt7dpDQtYzUz0zAc4/F3 8eDdf3JuJwBExUHmyP4f2cx1f/kKaTcRaqxwRRWVhWTg1gw2E2QVJcvGdOQDq9QR080Q IlHO9xWwl1zj2VKFguoEhkZYUDgVeFXRuNcOt6JaB3D8cTjXfF/AIvEZW3wvjkaSBS5v b4B4WU6RZpCrsAL3UA4Hgeysy1fsFv91XpUkTQ9MGTA43HUlZ9CeBxeZnrGAts+tD3yr SkOA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Y2Cpzw4E1MH/apRZiYWRudyXyqXaavHR/FmSYKlPnKY=; b=ZVZqWpVeFSLG8iiAhJW1KTgKO6TzZjxayZUfHBjzC4mf10UsgfyzHzT//ZEBkkdPnh G1HtdC+OL4bt+bErbGbpArHwgVSPXBLgMLllXUFdt5URdaRSHd/vUShDItfsgyfNzCJu oMWFgR3D/8Br/m5cQOAVBUGF2/n+dxepWJAS823MelVVN8MQCSLqOf8ZQxHGjEn87xCJ vHtvGMj8OpouiqTHUE/rcaz+VQfd1E63dXLDxWmbERQjtXYjR609LtHiDr3zazeHDE+K eZQxRt9A/hPpsbTF2JuG6yagM+XyHOMnfmEbuUg0TOfmtXFFfiCj1zVhn5EahIOPjttB JOlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b1jpTp4B; 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 q21si3298250otc.42.2020.03.23.23.46.39; Mon, 23 Mar 2020 23:46:51 -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=b1jpTp4B; 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 S1727340AbgCXGqO (ORCPT + 99 others); Tue, 24 Mar 2020 02:46:14 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:43896 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbgCXGqN (ORCPT ); Tue, 24 Mar 2020 02:46:13 -0400 Received: by mail-oi1-f195.google.com with SMTP id p125so17474850oif.10 for ; Mon, 23 Mar 2020 23:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Y2Cpzw4E1MH/apRZiYWRudyXyqXaavHR/FmSYKlPnKY=; b=b1jpTp4B/e8ld6W7K2xPIhclIcEVsAnvAe+EMuzBiS31/s3QhUZXKhkCgm3fPyQ1gx TQ20cmvwMjxCRuIA8NJ79kYdOSYNrlNgQp3X6sxNUcLdmEcIjnBwLNnnBXn4xVDbM+tS 9lhk1q/ObYf6vvmpG7fZDO3IEqxho3QLE6SSHTH2P8FyHGbDs3idTKvImBmobYGRigQP PSwjHklEuXRsI1OwATpb+tEBuBXz7LXS6nEulfEHFzVAgtpmj5bBduh/KEwb0PtVbMMy 0+u7HO7/LmL4AAycH6dKs6XyshBp2qXxGht81ERf8eIabT80Uhi+LHiu4/1Wr1IDPRii YZyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y2Cpzw4E1MH/apRZiYWRudyXyqXaavHR/FmSYKlPnKY=; b=TbV50qeeZG3G94UTACizdQHDvZm/c1/U8qWKSzGbxhfLhZ1oYL/omfVE9OwJuU3b+g 4gPTWHzRymoKGNEvKzjAgOamO2UnIGynUDh1tCGX/EAhJwJMl5CxQzkjzm/L4aM1wQrR tz04yUn5aVwASWI/RmJ7SSDc1eCzC+Ec6QJtgPaPj+cG8oaNzANbyuEIoSvWAc2QDrTQ aTH0OQozKHS+YKDs1v0f/WJgTvjK0vkpSgv5P9CwQSfqU5xJ/qenA0/wmYjwzjY6xmkv Nuxoo5RjiFI5Rpy22p1UbVZraZXU2ZrzBni0xSWGqokfLrBX1c5vhDC2B9xgmJPOoxZW vKuA== X-Gm-Message-State: ANhLgQ0pKJV4viqhB2GdjFXsRANYLmdVrDvxfAAtgv0Hu7fZg/ZQZlSQ Y0Vrba8AHAwv8zKk4+/QQ1s= X-Received: by 2002:aca:bd0b:: with SMTP id n11mr2240979oif.90.1585032372991; Mon, 23 Mar 2020 23:46:12 -0700 (PDT) Received: from localhost.localdomain ([47.144.161.84]) by smtp.gmail.com with ESMTPSA id x1sm2910134ota.7.2020.03.23.23.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2020 23:46:12 -0700 (PDT) From: "John B. Wyatt IV" To: outreachy-kernel@googlegroups.com, Julia Lawall , Forest Bond , Greg Kroah-Hartman , Quentin Deslandes , Colin Ian King , Malcolm Priestley , Oscar Carter , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: "John B. Wyatt IV" Subject: [PATCH 1/2] staging: vt6656: remove unneeded variable: ret Date: Mon, 23 Mar 2020 23:45:44 -0700 Message-Id: <20200324064545.1832227-2-jbwyatt4@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200324064545.1832227-1-jbwyatt4@gmail.com> References: <20200324064545.1832227-1-jbwyatt4@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 * */ int vnt_radio_power_on(struct vnt_private *priv) { - int ret = 0; - vnt_exit_deep_sleep(priv); vnt_mac_reg_bits_on(priv, MAC_REG_HOSTCR, HOSTCR_RXON); @@ -741,7 +739,7 @@ int vnt_radio_power_on(struct vnt_private *priv) vnt_mac_reg_bits_off(priv, MAC_REG_GPIOCTL1, GPIO3_INTMD); - return ret; + return 0; } void vnt_set_bss_mode(struct vnt_private *priv) -- 2.25.1