Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5104254yba; Mon, 13 May 2019 05:32:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt7/9sR6bVU9+HKPAOavAtP008YPqWTXLVCuCEq2wZUAir4HDx4Wmmez0n3dwyPTs/RpFW X-Received: by 2002:aa7:96ec:: with SMTP id i12mr19881550pfq.82.1557750752420; Mon, 13 May 2019 05:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557750752; cv=none; d=google.com; s=arc-20160816; b=Cv4dCPHUaZvtImNsR7uDB9eH3I0Zwp6g4jwgf8MWumvWsq+s0LOUpWOCBYydtVXLfB 87swOctev7apX7ZYaJspP4sBEEMiKGWBVKgWElq5Ft7RsSQQQrWjApRoDMfaTXfM5wuN crRSGl6JVhTJp+VuDBKnJmh3epUqdsqHdUroPiLAE+RBOdFr3CaTEt0ZWg/645Vk8Jgs ityvy968kMOG0xY9es8gXxAh+UE0GJ3L/stA7cWGLHrQ6f7rPJFjOH/IMmBw+sodk0DN HDNzj4VpibPRJGIZysaKV+0NvdwipDfZjmNAdLgydjx2wfLKPrHJrlKoqtlBFoy4Q1Y0 1TMg== 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=3iAATnbSEiy6b6i71ojDZbziQxQ7RiHCHlvJLO1/RJk=; b=XwksoAV2447RK248OSwtMwIM7o+i/tSg6wChXV2thxhbpmWmtU5eiN5T+90jNan2qg Ay9kJJbRn8zZy/rHGu6KGGp/RlScGorV5JmROiL1Ro38fjeAI8rgsGJjRinwiMKtQS6H uKynORfLTSsUgJEZwsQ1hblljw6ocpxzNq3Elib0J42NJUjKHFPqxQz840+CyEdI1c5n kmXUjLU18Ur/E+LLxuMPoHhiwQCvlWQUnUVsrmjgqpyXHXsmeL0pdFrYCsE+toq5rW7i 6zVuHZSjgVex0YC4tabQFQGZ5JEe6bxLjwAr0x5wZMhhFJxb4AViKLTG9LOh3aJioUR0 zVcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WaU3eFcL; 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 t34si7719600pgm.396.2019.05.13.05.32.16; Mon, 13 May 2019 05:32:32 -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=WaU3eFcL; 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 S1729399AbfEMLP2 (ORCPT + 99 others); Mon, 13 May 2019 07:15:28 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44403 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728906AbfEMLP1 (ORCPT ); Mon, 13 May 2019 07:15:27 -0400 Received: by mail-pg1-f194.google.com with SMTP id z16so6603669pgv.11 for ; Mon, 13 May 2019 04:15:26 -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=3iAATnbSEiy6b6i71ojDZbziQxQ7RiHCHlvJLO1/RJk=; b=WaU3eFcL3Wh+Ko+6wV7nZ9QbQpdYDw3FHhgJH2CoMDkRdTN4kpBLlTMYyWwbXTJDqX U9E+0q1QJgK5kc3L59EOugKXRbUZFaqi3Yf7C4Y/0BHVUDwqeUrzMIHINyvsZkduoh4q Lq8YoHjh+d2mrV3VfxBCUehOe8dOIJgXJmJH+N9FTQ0X73g6RMqE4cvOSMv58z/FPfHy xHUgWCmBS3qg3k6X3gh5qb0kGI9yPjfqW8vrx6qI017gaUhnacaQPu3kM8ciq9wRMQnu 01s5imbG9hpBai4GFZUZkvjXd4eTbkEJOylLvSmSmXmuHFkf4JOtZ7riE6PUQUuWQjDm Xojw== 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=3iAATnbSEiy6b6i71ojDZbziQxQ7RiHCHlvJLO1/RJk=; b=lYGWLsxKoykEEgjMXNOQwuq6nVMzDCSs0KejZQEKJF6NR/4bnq4yek9cTzy9V+INcm vV4AiMQ0AcC1/McoL15u5l2P2Q9qmxULsG5MEp+ZWhvO/TWBEs4zSo42zxLhk9O0HsYt H4pls7KaJMFSGWkZoAhXoAb9MRlzhCB0KAR7XwLXUJUZdBn8tC61xet4twFIJba/ed/V EjGhHXQvxgs+iqWka5C74xKdgfKKoPEGRVgeBK4XFCvfAVs/0N9RGimsLe8HvfpClQKM 1xrLzkJ5vYQxcYxJiA1REc9sxLFcClzKRt14KRbYhV32kr30xy5UnvoAg/4dF5JbCkFc baBg== X-Gm-Message-State: APjAAAV4g93Nez3/8aJJWHfZB5CH/LE14A/38lRIN9L4UNb+jqVdsyJe o5kKJiQwdZ85CHpIr8h+GRE= X-Received: by 2002:a62:83c8:: with SMTP id h191mr12306755pfe.251.1557746126297; Mon, 13 May 2019 04:15:26 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id a7sm4675526pgj.42.2019.05.13.04.15.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 04:15:25 -0700 (PDT) Date: Mon, 13 May 2019 16:45:18 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Michael Straube , Mamta Shukla , Emanuel Bennici , Wen Yang , Hariprasad Kelam , Jia-Ju Bai , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [Patch v2] staging: rtl8723bs: os_dep: Remove Unneeded variable ret Message-ID: <20190513111518.GA3766@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 ---- Changes in v2: - make subject line more clean --- 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