From patchwork Fri Jun 5 14:01:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 6553931 X-Patchwork-Delegate: kvalo@adurom.com 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 8C71DC0020 for ; Fri, 5 Jun 2015 14:02:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B67ED2051F for ; Fri, 5 Jun 2015 14:02:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C496D20551 for ; Fri, 5 Jun 2015 14:02:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422730AbbFEOBv (ORCPT ); Fri, 5 Jun 2015 10:01:51 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:33967 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422727AbbFEOBr (ORCPT ); Fri, 5 Jun 2015 10:01:47 -0400 Received: by payr10 with SMTP id r10so51499775pay.1 for ; Fri, 05 Jun 2015 07:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=R/7L7XFjwrM3FurZKN/aMz8mQuFcq2vkNikVtDMUhfM=; b=hwUCnKko2KnwOvBwrh/SVJKWsWvlIEz8G8YgMDMPEzqC/rg5638GlZf48OzB4oohGR aKRmTr0iPFDAvS+0tmfyjmWbyuk3jQtkEnWCiZ1HnqA7bR24kDY9jA/ABREhymNsP+Xy npjZN0omruKCK51NnW+MEFOg7yAm/oeYNNbk7rzEZhXu21y/PeQz6mpEI8og8po6QrBa WuzXQreS+krzIOZAie41if+jFVaow8qR6ovsceJhNupdl0nwwYdKDely2iTgmjS0v8R8 IeJM6uMmsU6QejNKoIhjhgjdFIuRsHSDltG4PKLHwosxilkCFUTs+ZJpUhyHTqAC+8IX 0f3A== X-Received: by 10.70.131.73 with SMTP id ok9mr6200135pdb.109.1433512907367; Fri, 05 Jun 2015 07:01:47 -0700 (PDT) Received: from localhost.localdomain ([112.153.155.138]) by mx.google.com with ESMTPSA id a10sm6908838pbu.15.2015.06.05.07.01.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jun 2015 07:01:46 -0700 (PDT) From: Taehee Yoo To: Larry.Finger@lwfinger.net Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org Subject: [PATCH 1/3] rtlwifi: rtl8192cu: remove duplicated routine in _rtl92c_phy_rf6052_config_parafile Date: Fri, 5 Jun 2015 23:01:36 +0900 Message-Id: <1433512898-30137-1-git-send-email-ap420073@gmail.com> X-Mailer: git-send-email 2.1.4 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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 in the _rtl92c_phy_rf6052_config_parafile(), RF90_PATH_A and RF90_PATH_B are same routine. so i remove one of these routine. also the return routine is duplicated. so i remove it. Signed-off-by: Taehee Yoo --- drivers/net/wireless/rtlwifi/rtl8192cu/rf.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c b/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c index b878d56..8ce055c 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c @@ -452,9 +452,6 @@ static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw) udelay(1); switch (rfpath) { case RF90_PATH_A: - rtstatus = rtl92cu_phy_config_rf_with_headerfile(hw, - (enum radio_path) rfpath); - break; case RF90_PATH_B: rtstatus = rtl92cu_phy_config_rf_with_headerfile(hw, (enum radio_path) rfpath); @@ -483,7 +480,6 @@ static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw) } } RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "<---\n"); - return rtstatus; phy_rf_cfg_fail: return rtstatus; }