Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4075697yba; Sun, 12 May 2019 04:36:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqy61fX03Ll+9SA2eyqpDgOeJ3CbBP5PiRY8kkxfvc3d8YO8/602na+lIf4HpFH9R9iZV99G X-Received: by 2002:a17:902:a415:: with SMTP id p21mr11029197plq.286.1557660984883; Sun, 12 May 2019 04:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557660984; cv=none; d=google.com; s=arc-20160816; b=Q45TxQapIBrKOsEyl2sXmPA80l62FflAmeBg/6wxRBUZeEfdFol5epMDeZvwsvEVBj FI2fMVvtEQKPGwnBPSmWTUjf/eI1FSRa5j5Rp2AiTbKdvcYV5Lpw1snjd5SOmJ1E5DTG crlJpjF70uo+rocvs8gYNpB+Q+TeVc0i43nMmpaNtCp07DA4SDKoG7h9TA4+sFE7mn83 hcH+kRS08rMeFKeZn7jg0G5yXqSksMdHZHtYz4K0fF0s8e/Xr4pZhAyeG2qSpGs1L2OS tZiQaIVG8HIAjs9Cg0V+U8KrOtovaa2H4lJ/GPkaLfx3zwYz8NBuLyQ13+ecT9BxyY94 Hxbg== 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:to:from:date:dkim-signature; bh=9f00UOD9NYVcNSwcRACXhgj+F1rjTUSAOxdcAQilGeM=; b=fGoq4lhPxnzij0uSS3j+eHIECuYJlbxx3bGAuhDu0Du8YmnhkQroiufAEGIsKKkLjt JMzlyfZYNuVqrcv2onYC2zpe5UiXhMb3DlZLQagx0ZR9xuM3cmCsET0u0oLbXIFqYMhS uBabKL1IAl7WKdZMV5D+pCIqbsPkZw70nWn245MhGr7aajOG9Jg3mLI3WpWxQ2oQLWQ7 09Cbm7yQ/UzPYUDJwCDyO+9WNhtdhvQV4JljJnZsezlDvaTNTBGQOs/YYeW9KGgFZKtW PMOb4enVDjdnISIYF7kUfgbKseQLuz8VONaAQEfjpu4dCy73+7CaggTyY3eZDgTUJMRU 0ckg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JRNU8ttk; 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 l6si14730272pgf.479.2019.05.12.04.35.35; Sun, 12 May 2019 04:36:24 -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=JRNU8ttk; 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 S1726550AbfELLcw (ORCPT + 99 others); Sun, 12 May 2019 07:32:52 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42439 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbfELLcw (ORCPT ); Sun, 12 May 2019 07:32:52 -0400 Received: by mail-pg1-f195.google.com with SMTP id 145so5264841pgg.9 for ; Sun, 12 May 2019 04:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=9f00UOD9NYVcNSwcRACXhgj+F1rjTUSAOxdcAQilGeM=; b=JRNU8ttkWu7WYhoYidiWjaf7gI8eubmh7Jdu0XhMfjo9ZJOXo7weoUF5vf5sHZHjSC +xY05/2mnT0IRHTMvwwIVeeD/7LLfrIGnoyQYmRnx3L+N5itN2vk5K6LjvbShE0UkYuw sZUWrmSizlJG+JD/HkOfAKinUMpTyfWH+aCmuVZScL3CubDfIxbqlDpoWl+XXCIP49Mp NNr2Bz8nsV8LEUcGFhsFQe7YChx71iySn5pxFd79GklhnbqUrT3MGedQBBSdqSvqegqS 9HMIjmEXN7zy6ZHNAj7pZma3wElB0je+khcTsdjgd541Me0H0XyCTffHqwtcn9+wzewO qYQw== 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:subject:message-id:mime-version :content-disposition:user-agent; bh=9f00UOD9NYVcNSwcRACXhgj+F1rjTUSAOxdcAQilGeM=; b=BXu2g6oaQWY4mbAdxo5RKLUIEVAykkxBq9jpBZH7wNclAfUWYbnm5TdfSLOdVPxUWZ Vzvc6CiXrfohi+1A6jgLwbyVck28X5zVA1fyRRfcWo0B5ivY1/1jSfCLh9dIeueHxgk3 BVg9mfxbFoDHF1Vpn2E9wF/Cy1baKSkNXEYkXFuBOksPpkR9ZWdP/HdRY5ueRSQ/988E TbCoyvP9sXTpvX7uqNHvZEEMXZGV4UxIu+WPhmyiBPNYBTfFgfM2jK9+qMSrbJLqsP36 Iz+NDrMt4N6rR1H+p4gcY3wXPsMN1rHbJ+7K/RyVEMfVajpJqcas2nHcqoru/VJ7MxNO IIeA== X-Gm-Message-State: APjAAAW5pFYnUiiJgAe0rj7ZKpef53P8VzGdIE1h2ugMrioKY9U/o4h1 Ki6ZqJOIwKQ+O3szv7Fo+xc= X-Received: by 2002:a62:579b:: with SMTP id i27mr27587948pfj.205.1557660771833; Sun, 12 May 2019 04:32:51 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id s137sm12577493pfc.119.2019.05.12.04.32.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 May 2019 04:32:51 -0700 (PDT) Date: Sun, 12 May 2019 17:02:45 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Michael Straube , Mamta Shukla , Emanuel Bennici , Wen Yang , Jia-Ju Bai , Hariprasad Kelam , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, viswanath.barenkala@gmail.com Subject: [PATCH] drivers: staging :rtl8723bs :os_dep Remove Unneeded variable ret Message-ID: <20190512113245.GA2221@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix below issue reported by coccicheck drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:2685:5-8: Unneeded variable: "ret". Return "0" on line 3266 Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index e3d3569..3f1ab6e 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -2682,7 +2682,6 @@ static int rtw_dbg_port(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { - int ret = 0; u8 major_cmd, minor_cmd; u16 arg; u32 extra_arg, *pdata, val32; @@ -3263,7 +3262,7 @@ static int rtw_dbg_port(struct net_device *dev, } - return ret; + return 0; } -- 2.7.4