From patchwork Fri Jan 29 17:29:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhaktipriya Shridhar X-Patchwork-Id: 8165231 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EF57CBEEE5 for ; Fri, 29 Jan 2016 17:29:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2988B20382 for ; Fri, 29 Jan 2016 17:29:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3F44E20381 for ; Fri, 29 Jan 2016 17:29:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756594AbcA2R3F (ORCPT ); Fri, 29 Jan 2016 12:29:05 -0500 Received: from mail-pf0-f181.google.com ([209.85.192.181]:33017 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756582AbcA2R3D (ORCPT ); Fri, 29 Jan 2016 12:29:03 -0500 Received: by mail-pf0-f181.google.com with SMTP id x125so45555948pfb.0; Fri, 29 Jan 2016 09:29:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=uB6emK3PLM/YbFKoF1TDccoebW0pvPjM6CXoIr3EF3k=; b=0flKKpAmYYavI/1lHmOlOdJN0pdg0GS8GbSudKdzRw/rut5ge8cqe/SlT7jfNkfc48 sJZwD7ozpFf0UJqqAA5hEeZbY594Ny50PoKMIR5Yqp3M7TemjDViDL/Me/U0xthBqVVs oJ1zPwFZVRpE1a2KD333nIfs/dLED5YwguQJeOvxPNT9rSe2YDLBYW/YFC8tiX1pRUHB Q9b/UW9gFxZlMf4Dq2yfuE2SWE2gYphhbRJIp+tVACQim0n9i/rwN7+PpJ3w63e0y5CM bh40kflaNJb2FzjQMAMYAmmz++V3JLrDcbc8b+woQ4Kiq9c+yDcEwg3os62wqMDyPXNi NhBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=uB6emK3PLM/YbFKoF1TDccoebW0pvPjM6CXoIr3EF3k=; b=KFPcFM8vveOrykbGqc5XS2SPWH/JcoHainT1SrgL4x/lnqpM7yCxIyPsnQrWBmky05 QMpDsX8xTw/CgVcuT/SXaftmyUdTm8FBSy8KchSbEVGB0TS5FHexw52OBuN+06CLc/w+ bGfZqD2qK+m9B2w7ZNoWBWrv+7dMudiO6enY2DMY/rCzuYbasqvUDg7BAACFMl9a1pXk 7gpIyCqf4fEiWlZw53OVZYNFY8MM4jknwlnoZlD7iIri14Z4WnZOSj9WM2DaTzO5RQJM W7p22Ayiiu8b61yQVPh1tLpPSHaZVNwBc7fdwyK+ZpYrpOojCzO3yn9Zyia8ytpzUgcB 6Jgg== X-Gm-Message-State: AG10YOTvZrsri0FKvwwNzOvZsgEC6Uwz3G3E0Hd7c3/3M40EWdpFydoDZelzar4tnn9KIQ== X-Received: by 10.98.32.156 with SMTP id m28mr15197552pfj.74.1454088542464; Fri, 29 Jan 2016 09:29:02 -0800 (PST) Received: from Karyakshetra ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id n4sm836013pfi.3.2016.01.29.09.29.01 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jan 2016 09:29:01 -0800 (PST) Date: Fri, 29 Jan 2016 22:59:08 +0530 From: Bhaktipriya Shridhar To: Larry Finger , Jes Sorensen , Greg Kroah-Hartman , Joe Perches , Bhaktipriya Shridhar , Alexander Kuleshov , Haneen Mohammed , Andreas Ruprecht Cc: linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723au: Fixes unnecessary return warning Message-ID: <20160129172908.GA14077@Karyakshetra> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file. WARNING: void function return statements are not generally useful Signed-off-by: Bhaktipriya Shridhar --- drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 10 ---------- 1 file changed, 10 deletions(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c index d28f29a..e8a16b9 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c @@ -2657,7 +2657,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da) dump_mgntframe23a(padapter, pmgntframe); - return; } static int _issue_probereq(struct rtw_adapter *padapter, @@ -2958,7 +2957,6 @@ static void issue_auth(struct rtw_adapter *padapter, struct sta_info *psta, DBG_8723A("%s\n", __func__); dump_mgntframe23a(padapter, pmgntframe); - return; } #ifdef CONFIG_8723AU_AP_MODE @@ -3339,7 +3337,6 @@ exit: } else kfree(pmlmepriv->assoc_req); - return; } /* when wait_ack is true, this function should be called at process context */ @@ -4103,7 +4100,6 @@ static void rtw_site_survey(struct rtw_adapter *padapter) pmlmeext->sitesurvey_res.state = SCAN_DISABLE; } - return; } /* collect bss info from Beacon and Probe request/response frames. */ @@ -4760,7 +4756,6 @@ void report_survey_event23a(struct rtw_adapter *padapter, pmlmeext->sitesurvey_res.bss_cnt++; - return; } void report_surveydone_event23a(struct rtw_adapter *padapter) @@ -4803,7 +4798,6 @@ void report_surveydone_event23a(struct rtw_adapter *padapter) rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); - return; } void report_join_res23a(struct rtw_adapter *padapter, int res) @@ -4851,7 +4845,6 @@ void report_join_res23a(struct rtw_adapter *padapter, int res) rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); - return; } void report_del_sta_event23a(struct rtw_adapter *padapter, @@ -4907,7 +4900,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter, rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); - return; } void report_add_sta_event23a(struct rtw_adapter *padapter, @@ -4952,7 +4944,6 @@ void report_add_sta_event23a(struct rtw_adapter *padapter, rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj); - return; } /**************************************************************************** @@ -5395,7 +5386,6 @@ static void link_timer_hdl(unsigned long data) set_link_timer(pmlmeext, REASSOC_TO); } - return; } static void addba_timer_hdl(unsigned long data)