Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2564552ybb; Sun, 22 Mar 2020 02:24:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvTnEWtCONCvoPQpOUqhBMnKY/coQ2zHlJKfLRRv/H6TZdWr78bkzsk5V7sQoVbeeBIzf0u X-Received: by 2002:a9d:5ad:: with SMTP id 42mr14438215otd.231.1584869060861; Sun, 22 Mar 2020 02:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584869060; cv=none; d=google.com; s=arc-20160816; b=Iree3A2cbGljvNbhmvVbb/FkcoAOYbttKtiT82BdDOsdz2+trURNTFj/evOxxJRMF4 7UO6uzqxeyas4IFCNFzctOGfRAKBYilwigK4IInSvnI3h45TNg/bxNg74JL1ThmkNV+P 9I/lXWUfOGV69O4BYv+kA5oVAPw/DiuDcYxUB+CIyc1q5gnjX+K4DnBNNoXr7rCpwNz2 eEtotI0KdlyydsaN6XCqy+LXKMjCv6KRyVaVQy+rQA+VkwfjZ3KZ6tBpsq2IVWO66VBP gaNvcup89N+Lnz2o6E8jigHpgnwy7tOK9AI2IghWmJa9436WfFbk/+VaYZ2LTZrb+1Yz jucQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Y2Cpzw4E1MH/apRZiYWRudyXyqXaavHR/FmSYKlPnKY=; b=heLy7WTj7hJ74666DrmLGFa0NlsfjlvXFDboW6/NN1X011OqRMfSDwD5q2XdVcDm0E idfwtGJMvEF3Pm78V5eHrac9D0hdrYsxYfiOQsLQryEWBKY3Yy2hjeXJ8x2AoQ5Ma/wK wyqYzc96wIi6p4fkFC1dG0lD5rgZ5REwO7gXyNYMiGl267FrdsMvK6Lj30AZ+GdZUu/d h9SVfMu5OSyXRCA57UVAfpHhYcR+O2DTR8k/LIr3sTViKZRVSMU0T38MxMtBq+0Tyey7 JiuG6OP4RBa3S4rIeDa8LckmzmDFp5zBgQtZwbCI4y7E8Hec6R85pdWjCGhaGhc+l76H 63VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ibuy+ubV; 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 l126si5648401oih.31.2020.03.22.02.24.08; Sun, 22 Mar 2020 02:24:20 -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=Ibuy+ubV; 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 S1726847AbgCVJXP (ORCPT + 99 others); Sun, 22 Mar 2020 05:23:15 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:45529 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbgCVJXP (ORCPT ); Sun, 22 Mar 2020 05:23:15 -0400 Received: by mail-oi1-f194.google.com with SMTP id l22so750923oii.12 for ; Sun, 22 Mar 2020 02:23:14 -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:mime-version :content-transfer-encoding; bh=Y2Cpzw4E1MH/apRZiYWRudyXyqXaavHR/FmSYKlPnKY=; b=Ibuy+ubVA2CVcrbPJvsQrC1fRR62x2DqzOpX0d2eshUp/quaABfC1TH/hgxFFG6Wx7 QdaEazKdUdGwDSYnZ3rBIHMTyVfagmHXs2oyeq07akmRK+cNsI/1WJA8w8eKXVLCpQqm p+gxA5mWusTwmt/3IeG7QRB7Fn8m+RaWdfqqoEyQkCph5ZmnCLsXqaGMwLEmxPhi36Ap CkJWjmNGHipOBxYYRaCJRKffXEOoMwg+2ycrub/LbFNP2Ia/1J8KMwyxyT0BSCJzWglg O8sYQplfT02vYidaK8oYvZl9geWd18FnNYYgjyj+Uwks/9zEEb5/6iRtu4z6ZihMneyX BY/g== 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:mime-version :content-transfer-encoding; bh=Y2Cpzw4E1MH/apRZiYWRudyXyqXaavHR/FmSYKlPnKY=; b=PO6X7qVn4z/kUbBZ9mrFAX51bl33nYxpTWhSBOWQn6B1jprTWK7cj8GyvITC4RfsKo Dal4w1KVBlF1aFtWfIHLlLacqvIkTxnI27XPNtpBFmuUX/LvjHBi7ykU6CflfOeV5A+l OCfy247e+3il+/TiHVZEGaUIpc6EmjDVrGGbVfLNkv6tcgutWTAWG9l8DWzZA2zpJT/L c81tE8Z4cEnXZ4+Albalfo+F3HwXnAFT0+o1VDIQAaaJu3436v3EQf6leMTq7hOISGz1 7wSkTQuZVi/ONdAEFC5hslzbOZITjWnxpNfcVFgjbANHOHMQpDxi50csd57599FmfExC dOtw== X-Gm-Message-State: ANhLgQ3lohLAa2Ln7P1DEbRgxqwLNGp7z+nUtfNjHyRsvx6YwYt0STaQ fA1ArJ6pEU8QKh7HL3A8Myg= X-Received: by 2002:aca:4bc5:: with SMTP id y188mr13419644oia.9.1584868994030; Sun, 22 Mar 2020 02:23:14 -0700 (PDT) Received: from ManjaroKDE.fios-router.home ([47.144.161.84]) by smtp.gmail.com with ESMTPSA id a33sm3836804otb.70.2020.03.22.02.23.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 02:23:13 -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] staging: vt6656: remove unneeded variable: ret Date: Sun, 22 Mar 2020 02:23:03 -0700 Message-Id: <20200322092303.2518033-1-jbwyatt4@gmail.com> X-Mailer: git-send-email 2.25.1 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