Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1082745ybd; Wed, 26 Jun 2019 10:53:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxa/j7EgbgSp3CQZQTVC5zmUGSlmVFl3zb3KAq4dj9/JmbMt6g2YinvBLZC710KujLkLWWP X-Received: by 2002:a63:2b47:: with SMTP id r68mr4021379pgr.352.1561571618400; Wed, 26 Jun 2019 10:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561571618; cv=none; d=google.com; s=arc-20160816; b=xGbgnqEe+O2ySZ3wlHA2c2qF/AlOfUKhCW7g5kmA68VQvLgfPyEnFD/4Udg+aG0SjJ aAfvEQFIzuw1FoHKgWBqoUFRuOEKDwGNytde1Gm36LuQ8XDHqFkUhrjiGWO1MYVZrPCc pzKgNVTSdLldBIj1jAZDUyOZ59xbdtL2sLH3frE7iRygtuv9zl3Y/rkq37RBMPCHOp18 ulcPzxP6ES6B+RjMlovVgsvJo4RLMbhzEkXv3xMTczER6SfDwnvPD0+OCOgRzE+pPlkJ GD5TdwwOcukYzstr6DaapWe8tjoIrfdns5UEIpcMVbzLI/kB5OZCeXG+++AI26uWx5Va xWgQ== 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=PYRuyD1HElut26s/f7k9wlmyAWeFCl38SzC1C9BI8tY=; b=bITaq8uu5tv52onuiHAmIhAMN+Xj16DPkRJifPAolsx0jXkw5KFf/3r6bTBZPv2QlU PLz77bejwmhZYMxpOX0Y9J/VyWaqv5sJWUmTqp54s55snaSpBvtG9xWdiqPWQPcXEDjc j4G4bAfDQm+CU+coC16eE/p4qMwpZMPa4XKjkBsaWmzx555IOSk4NDufOTABOtFASCCa zTfAfgFFkgTtLWk46BuSD0SYkasGhs9YrKthJcEWkDMbAiDSQ3333zlOZGdbPRnRnRCV exLRZ2Pn362KJbI/Adj6X0gwxj/GBkLgvXW68FTqznnOlAo6403C1mUxa4Islhoh/+Qe /I4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XDlX7aiZ; 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 b3si4488861pfa.89.2019.06.26.10.53.22; Wed, 26 Jun 2019 10:53:38 -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=XDlX7aiZ; 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 S1726825AbfFZRwA (ORCPT + 99 others); Wed, 26 Jun 2019 13:52:00 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40042 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbfFZRv7 (ORCPT ); Wed, 26 Jun 2019 13:51:59 -0400 Received: by mail-pg1-f196.google.com with SMTP id w10so1551483pgj.7 for ; Wed, 26 Jun 2019 10:51:59 -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=PYRuyD1HElut26s/f7k9wlmyAWeFCl38SzC1C9BI8tY=; b=XDlX7aiZwQokBsiCMdvUOmEJQsIlxeCrOI3mc84lr5R7kBNv78OIPHppyWoDe5UeNH QGAj8tK1u83UflPF+m0lb+fllt8uoyjJhH1wQi218pbhA1yZMinKQjkB4S3O5xksopTG ts9als020BCHH6PJmv5n88nInO2k+zonOtT4BxxwdVE3mUCqBWV7rKjA5Rt1K4W6ANYu s7I8Suz73D05eUsDH6sQN9+k/6S9yjHlerk5gCLWKy0CAnbU5E1jd9bdUgUtUdEUMEaD E8rD4vUuwZrvESBgAwV5b+aYt1BMHx/4vYJd8TVsrAcLZBVdBHEwZ62DinJDao4tNWn5 jkVA== 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=PYRuyD1HElut26s/f7k9wlmyAWeFCl38SzC1C9BI8tY=; b=bitQjjOb+WY2BqDKUh5XBGnkNQI1FBMMHvluP6d5pEpns5A+fb9OguU5w7re7BBzE9 T26rooaecWfqGvtIlwlVAsOo17N+GBlg49gdgKihZGhLgYlaAAXnTxVcizaovaFg8gzS hO7iahMk08O4SRoUMex5qj71TjGINM66UfuGSjh3qV7jD7Qi47qbKUDuWOZu8NoCLgeT FhADEnjl3VACvVju20KsUOaeURJkXtovd4vV9yZEEddXkx8fVksYB9rzGRJXcQrghLKh d6pFrZnKINKxokH5OJJid2QkYJY9y0ZzUWFNQpHUi89CFGGb04zUETiJPlr84VK2bT41 c4GQ== X-Gm-Message-State: APjAAAXAakwN+1gbrh/eXpu7fz9iY7LXyb9oV/DaY0NWGQ3MBNvRfGTf FF1dzyhC0x7b2vb9BLZHZC4= X-Received: by 2002:a63:1723:: with SMTP id x35mr4053469pgl.233.1561571519161; Wed, 26 Jun 2019 10:51:59 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id s9sm2465026pjp.7.2019.06.26.10.51.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 10:51:58 -0700 (PDT) Date: Wed, 26 Jun 2019 23:21:55 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hariprasad Kelam , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: hal: rtl8723b_rf6052: collect return status directly Message-ID: <20190626175155.GA9162@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 Remove variable rtStatus and return phy_RF6052_Config_ParaFile function directly Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/rtl8723b_rf6052.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_rf6052.c b/drivers/staging/rtl8723bs/hal/rtl8723b_rf6052.c index c205345..d0ffe0a 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_rf6052.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_rf6052.c @@ -194,7 +194,6 @@ static int phy_RF6052_Config_ParaFile(struct adapter *Adapter) int PHY_RF6052_Config8723B(struct adapter *Adapter) { struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); - int rtStatus = _SUCCESS; /* */ /* Initialize general global value */ @@ -208,8 +207,7 @@ int PHY_RF6052_Config8723B(struct adapter *Adapter) /* */ /* Config BB and RF */ /* */ - rtStatus = phy_RF6052_Config_ParaFile(Adapter); - return rtStatus; + return phy_RF6052_Config_ParaFile(Adapter); } -- 2.7.4