Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1816747ybl; Sat, 25 Jan 2020 09:12:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxv/wrKe6s3supzlA0ByUCoeFjw9iYHFgmWjdjF4Yau4jmtZhGhbdUtgsttH9sP75wBBWvu X-Received: by 2002:a9d:60c4:: with SMTP id b4mr7192889otk.166.1579972351800; Sat, 25 Jan 2020 09:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579972351; cv=none; d=google.com; s=arc-20160816; b=GFYFEQHlNykvOZf/Y2wPuTTIUvdVYTqxLoMeDDNr/du3gdg3bUV9SYzm/0KJ121Mlr y/vUUmrBcJxkEw6tIGhC3OOM4ZLnbDcwxH4OxpewsE4t8JhEMFkBljwrH1yUGJ3AFTFt VJ1t1H4FjwFY56V+9uumLuwIRh+4SG8xDvTS9ypwiS8AcfuxY4ISb+9HT0cue0FR+9+c WL99zf+0C+SOZCUfmyikiQ6eHta+C/H4RcnkBQ5S2SKrULIukmsA1/pXo3sO48Blk6AQ hcVW3CnsvZG7KoT+0Qnm19GOusK4lPpZiQHEg/0wDbJ/Cf7T10JdX4W+EIbwzdBRldkG p8Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=b6njYIG6ff8eY1VFaMmfpvx8PhOEu/k5+MjVDr3pN7U=; b=r4HXC2QfvHqYs6TgM10vr6Fm/HjB2OGibxpMpJskXXSMURX7kI31PqSChKJ4MJPEhs 2OLl49GgTAknSbS8K4JM4VMugtO6ofk7FPTcWxhuV/4t5xCzMmR9bu9X+qSY/m7XmqXD N2SoWl5zomRH6orUsZdT3z6hw43IiXveqxjLru/W+y+9kUHUbgR0fNHa8GkhfoG73ge9 VWRFMibGOqWDYOOSqpEhuA3VK05djzRqWlK9wUWaSIG6zPCOp8ni1FiI0rWKg4wviZ+t kA6k9+xBMF7Ls9aTUu4YbOHCJeBk8JrrkbBo+X8z1CexumVXEPrMKUKRkPurCj1OWwap n7KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B++NlONW; 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 d140si1485373oig.269.2020.01.25.09.12.19; Sat, 25 Jan 2020 09:12:31 -0800 (PST) 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=B++NlONW; 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 S1727084AbgAYRJi (ORCPT + 99 others); Sat, 25 Jan 2020 12:09:38 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45827 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbgAYRJi (ORCPT ); Sat, 25 Jan 2020 12:09:38 -0500 Received: by mail-pg1-f193.google.com with SMTP id b9so2836991pgk.12 for ; Sat, 25 Jan 2020 09:09:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=b6njYIG6ff8eY1VFaMmfpvx8PhOEu/k5+MjVDr3pN7U=; b=B++NlONWRWsNIZANd707V/YLH+WiK/uNB7UNheivQx7q29GhnFHLgKMeyQJFw2E1+g yCcrqPua/dRNSm7m03QQoUPh45oht9Qd8pFbnJ+oxSqXKOocoWzKKeXq7g3g4FqFztVI FZwbhxEYPlKzZPgZUb2TolYCOD0icD/etvjmGu94WoegsE3QfOQokQqTpqGeHyc7u/Iy dW5AJIVQ49LezGnat4UGOe42GXgHS53bzI9SNSuiP2uqZ+2MaZ9gS90nepNTTGzx96eR 3+KyiQMiNgcLWuTSqWBt2ydXTjCZ88PTmikQIRgcCTGObuesYbYp7AaueGedDugmFmk0 uxzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=b6njYIG6ff8eY1VFaMmfpvx8PhOEu/k5+MjVDr3pN7U=; b=E1lXsmgGKZPkWiOMVbtzvQyj0mYQq+GTkonul/SKyzk5NG3gLPLnB7kxQG9ML+sesM +Ms+UDTc1RAwh1WKD7vadhgEtsnwmuOypku0Ix4UjXlpgDol0zgN0AeXZsjFElx/fDCY ZkinuN5wiJMq8xDUNefO/AJYcQEhGCkwSvUCZ1dNdQcOJB/8bOO45icst8zOGO9zs8iJ h6k2wX5YFNGUljbxvgTMLRhW6fjWjh0LJnmhB3SmBr7H2eRXwywwXpQdi68TgdI+tu/X DaZ8NBn5wc2DZ7zGcTmdAvXrod4krdobSzw6uElyOFe9+c5VjcXQFXN4+wTYQMMlXKuf qgfw== X-Gm-Message-State: APjAAAXK6tGA2vppPqkNkBycznSqy7tNKz7+nVZ8D2JJ5lHZVToCZ8DX MN0TabStZ1Qj6PT+aC4FkUo= X-Received: by 2002:a63:2a49:: with SMTP id q70mr10278060pgq.265.1579972177300; Sat, 25 Jan 2020 09:09:37 -0800 (PST) Received: from google.com ([123.201.163.48]) by smtp.gmail.com with ESMTPSA id a12sm10408176pga.11.2020.01.25.09.09.34 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 25 Jan 2020 09:09:36 -0800 (PST) Date: Sat, 25 Jan 2020 22:39:30 +0530 From: Saurav Girepunje To: forest@alittletooquiet.net, gregkh@linuxfoundation.org, quentin.deslandes@itdev.co.uk, colin.king@canonical.com, saurav.girepunje@gmail.com, tvboxspy@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: vt6656: fix Unneeded variable: "ret" Message-ID: <20200125170930.GA4809@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.6.2-neo (NetBSD/sparc64) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variable "ret". Issues reported by coccicheck. Signed-off-by: Saurav Girepunje --- drivers/staging/vt6656/card.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/vt6656/card.c b/drivers/staging/vt6656/card.c index 7958fc1..654cebc 100644 --- a/drivers/staging/vt6656/card.c +++ b/drivers/staging/vt6656/card.c @@ -719,7 +719,6 @@ int vnt_radio_power_off(struct vnt_private *priv) */ int vnt_radio_power_on(struct vnt_private *priv) { - int ret = 0; vnt_exit_deep_sleep(priv); @@ -739,7 +738,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) -- 1.9.1