Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1357712imc; Sun, 17 Mar 2019 11:37:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtIDKV+0CBIkpDK//5qiDBD0uvE6nrxB35hdUz+dNkIZiGXe1kfwmBnOUTN3mJtRQOipz3 X-Received: by 2002:aa7:9103:: with SMTP id 3mr14908506pfh.192.1552847857377; Sun, 17 Mar 2019 11:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552847857; cv=none; d=google.com; s=arc-20160816; b=ew6xruKXIQgb8OOZsVq7Lnl34qp7ZKgVlwGz6YbcpLn1YjJ/3LJyQ+20bFheLB36Hv SG8uAgEOMt5gWp+oO4pWjI15IlYqyhojJgF+I1SgHb/1zdN5P4fcM82oQg0WAY6kpASF M5dNl0/re0geyD+EpQbWilmj9iBe1zFwpm/XveBik3P31t+qv0EZqGh2dukn2Rm1lmvy +xtoi6zkdRDBSquJtLWP9FKTLXhcHg3/ENv6yJvDAn8MDT4hq5r+/Zg0oZb8itS9WlD0 vNRoVo09eEczxd3uRSMqCCyfckmtu0tzKu4vyMIT944RXmKSKTm8MIUQhTEiLujtb3nv xdcw== 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 :reply-to:references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Wf+bmNv345I/2uwkHlStaw5YKsDPQ+gtBUvmRGoCFLA=; b=O/dBfoHQI2tU1W5TSWBchegmWA0t6rh784SkytD7QTCsjpo6teiO6N5lLrHiLnVjLE Y3+NKVZLXFP9wUJHmkMH1YzkautCu6fNkkyjpZoNqwn1ggpaJCXtMnTlV15phgxJLc1Z k/yCGTqmpfNj6e1pKdiFR/0hcMF7iQ80IQWdcWZt3SqavSHfdDZxFBdiF+FDs5J/xM1W 3J0Kl+Z6l7ek8HgxU2BhEbECL8jpoEjHXhCFOED97db5KbiRKrd5ZyEwtK/CyWkkSOro DoNpqSvLydjFsLSta/FVDPZ3UwVOsEIIMnJla2oapOX3UISRaCO3oqLBnAUsb+vJ8TBq XyAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r9El2qqd; 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 d8si6919620pgv.53.2019.03.17.11.37.20; Sun, 17 Mar 2019 11:37:37 -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=r9El2qqd; 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 S1727555AbfCQSbw (ORCPT + 99 others); Sun, 17 Mar 2019 14:31:52 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36123 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727495AbfCQSbw (ORCPT ); Sun, 17 Mar 2019 14:31:52 -0400 Received: by mail-wm1-f65.google.com with SMTP id h18so2086417wml.1 for ; Sun, 17 Mar 2019 11:31:50 -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:reply-to :mime-version:content-transfer-encoding; bh=Wf+bmNv345I/2uwkHlStaw5YKsDPQ+gtBUvmRGoCFLA=; b=r9El2qqderLJqFjvmZfNygAuPOmzHxwJSTRNKiK0ADSw4eUR1/3xlpO8VAlhSztqMs tjsnh362ko+c/4JhMc32C4T0XK1uDcKEZ01KR30S47JfzgOXb36MZ0aU1Adm/dPJq+jS tkIbkauEga173asKzD3gVxGqSBCcFDiZ+VS0A7LAQPHbyZC0lq30fh36iP7SVtg/ANhX 3Qr79NyooM74pv8yzNW2m80XqNytXvpadNMFghzHu7bYQBUh+RfpO+E9j+ZWerEJWEmz p/lALy6mybSuhhgTRbJPxgDw4L58UZO8LcQZ15p/gbNsrRvVPLq8jFlP0X+zQ7aQXIeY exdQ== 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:reply-to:mime-version:content-transfer-encoding; bh=Wf+bmNv345I/2uwkHlStaw5YKsDPQ+gtBUvmRGoCFLA=; b=AZ6/qXtmUNqYMwrm2YGzVZin7GT6H2qOM5dAQn5eZ+oKX5sb2MpUQb/idt9msqPxrl lCU3+hCM9ibWMc35yNJzLVDEsmqbOIDwGngG/MhYlIrUsiCIt0KDUunZWtTyXL1kSV8U Ub/van/fS9Wgw3mizVJdc+X9yBRn3Wdz7O8N1/elgzTef5dYUv2rxPQNA2NLitsx38gO Add0xG4TjT0QydRXfEcKp/mBzKvBJH6KUlTa9DVhGdXLIkYoMXvB8HIuNu9dnRV7TEON Pu5d6n2oR9SswZpl7wtS/sVDr5YycGvUtUL4jU22I6M0oPsUB2C0DSnnCmrHVnR8NCZP D1cA== X-Gm-Message-State: APjAAAUJ2Fk6SQXS9HkoV+V4Is5BRXyw0+mlLHmvxtqbSMZJktNUw6zG IHHFqdpVp5ZTm9F9tLbxDI7i5UWRMSs= X-Received: by 2002:a1c:4d:: with SMTP id 74mr8349491wma.1.1552847509845; Sun, 17 Mar 2019 11:31:49 -0700 (PDT) Received: from p200300EEEE2F.fritz.box (p200300C9871AF900B43796A8F69485B6.dip0.t-ipconnect.de. [2003:c9:871a:f900:b437:96a8:f694:85b6]) by smtp.gmail.com with ESMTPSA id q5sm8415358wrn.43.2019.03.17.11.31.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Mar 2019 11:31:49 -0700 (PDT) From: Emanuel Bennici To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Joe Perches , Quytelda Kahja , Michael Straube , Mamta Shukla , Nathan Chancellor Subject: [PATCH 09/10] staging: rtl8723bs: Remove Dead Functions in os_dep/ioctl_linux.c Date: Sun, 17 Mar 2019 19:31:12 +0100 Message-Id: <20190317183115.32393-9-benniciemanuel78@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190317183115.32393-1-benniciemanuel78@gmail.com> References: <20190317183115.32393-1-benniciemanuel78@gmail.com> Reply-To: benniciemanuel78@gmail.com MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Functions `static int rtw_widi_set()` and `static int rtw_widi_set_probe_request()` part of dead code due to CONFIG_INTEL_WIDI. The fix removes the deadcode. Signed-off-by: Emanuel Bennici --- .../staging/rtl8723bs/os_dep/ioctl_linux.c | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index f1a1baf72488..4fcd404f0dfc 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -4514,42 +4514,6 @@ static int rtw_tdls_get(struct net_device *dev, -#ifdef CONFIG_INTEL_WIDI -static int rtw_widi_set(struct net_device *dev, - struct iw_request_info *info, - union iwreq_data *wrqu, char *extra) -{ - int ret = 0; - struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev); - - process_intel_widi_cmd(padapter, extra); - - return ret; -} - -static int rtw_widi_set_probe_request(struct net_device *dev, - struct iw_request_info *info, - union iwreq_data *wrqu, char *extra) -{ - int ret = 0; - u8 *pbuf = NULL; - struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev); - - pbuf = rtw_malloc(sizeof(l2_msg_t)); - if (pbuf) { - if (copy_from_user(pbuf, wrqu->data.pointer, wrqu->data.length)) - ret = -EFAULT; - /* memcpy(pbuf, wrqu->data.pointer, wrqu->data.length); */ - - if (wrqu->data.flags == 0) - intel_widi_wk_cmd(padapter, INTEL_WIDI_ISSUE_PROB_WK, pbuf, sizeof(l2_msg_t)); - else if (wrqu->data.flags == 1) - rtw_set_wfd_rds_sink_info(padapter, (l2_msg_t *)pbuf); - } - return ret; -} -#endif /* CONFIG_INTEL_WIDI */ - static int rtw_test( struct net_device *dev, struct iw_request_info *info, -- 2.19.1