Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1068319pxb; Sun, 11 Apr 2021 06:32:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/SCl9CjPVUpVHkq+KbqvBurOWCe+c7didjh6jmnNmhbI3pdWyTdwHG0vB6JDkPKzqADeT X-Received: by 2002:a17:906:349b:: with SMTP id g27mr1456642ejb.306.1618147962615; Sun, 11 Apr 2021 06:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618147962; cv=none; d=google.com; s=arc-20160816; b=GBLq1INnkYQQ5kAcuogP5XzTn3oFSZMBpL1L/0MUqShtVpDWtKI4O/+0SM/bZkMHDD HDuYpnauzbHLtp88rgE3dEZMoHLf+n5avAo2WpTAbZ2cfjIxUrRqWTuAD6ERO7MrbFQz qTOr4TQdEec23tMLj1M5GwIjVZzJwkxIeAP5CLami5EsieIdpEK9w3XFUcMJjVbf7RDl 9bF9VR6+zzgtUpoiE5IhthFqUr8QwDpnqqSZGarDOUCTX0HBIfT5CJct/O+pcqOpbT3T OpYhtxJpbfPJBnQERz8v9aXemASlMZmhol/ZBYAYp9ZHdmYS6ibvewtfUQ29JbWwL5uQ LywQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dRMti9nujvKS8H3X8tITiw1ThPL4vQHA+hUAaNa2c7s=; b=tooK4ymS733IK/sXEZPJgfGPDE2BBRAnb57oNgyym9wvIW+LtviHLkDZs5BZ1DkUgs QuGxr9Z4Fbun8JLCb77u6YY87Nwq7uTJE5gDEEXTrsXzLaqPWzlSlFspwnNpHr84KXuv WmHlqSqPsBtvNuLBpViCMDHYLcfrZ9G8tfu0nT+txvB4JtBMy8RqganJAJyOXvwiPplj 6/j58lI9iOqzmasmvLJd9i2zXC4n7A8ZhS1ROc/0naopaTUJByVzqJ2uSNM+TGoJ0O1k TYjghTu6dvhsS0CvHf45UOQa4sdpD6rLyZwOhXj21EB0VcqWplOFqxcZLA137gHCx+SS VorA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TATloitH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a8si5827852ejs.433.2021.04.11.06.32.19; Sun, 11 Apr 2021 06:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TATloitH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235581AbhDKM6H (ORCPT + 99 others); Sun, 11 Apr 2021 08:58:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235095AbhDKM6G (ORCPT ); Sun, 11 Apr 2021 08:58:06 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34DCEC06138B for ; Sun, 11 Apr 2021 05:57:50 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id n2so15749270ejy.7 for ; Sun, 11 Apr 2021 05:57: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 :mime-version:content-transfer-encoding; bh=dRMti9nujvKS8H3X8tITiw1ThPL4vQHA+hUAaNa2c7s=; b=TATloitH6Bay+1BTft/k+MhmpWkk8o77IH1l9FwWkEKpw5U9Wd1FnlNc2eDYkaXslp FgydzAFqWWNIMNquxm44Ndn+1KAZMpGjiQ3g/TBo5jZFFh1d9JdU8UrXvsn7kZNM5+A+ ndD3az7bvsdHUDF1xiQaAcZvC4zO0xjFKpOQKdH9JdSZxLqhQ6bo2Oae7mrbDqT+yLet ToUnxzfcMkEAl/tXywu6deOWn/Eupaf9kdXhZbtB3XUepxzywSUQTTQufvuzG3TZv9Hl FFgLqUWF2+GUxKGpchaDDq81HX6o5UMtbY09gqXPH3+n12zjkpOMrHwRh71Uoxl6sE1k ogZg== 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:mime-version:content-transfer-encoding; bh=dRMti9nujvKS8H3X8tITiw1ThPL4vQHA+hUAaNa2c7s=; b=YWHEb1f//wijxtUmrKRT+Q21igi6BNEwcvTR3W0rMGPTZzwLSLb6d/k0a/jzKY2uJV N4yoCdRKxr9N4IQLJsu7YMFPblGkN9M0f2b1TU26y74OzDZ8WDSnlfsgE5h7R9AkwoZi HlTN/AEk92jsPx8TJdWJH/BoinaqUTcPKAP/QkJfSOewmYoCmk/WyvaT6bhAaXbPhfWA MJnS+9/5oSWPyUXhx/F8P1TZ8yw6y7DAZ+vqcRoTQWlLgOh9cd5Cs6gC/+mXuXtiUG8+ mk/tpwttCO68BMAyDg7qXS25TrbMmkOWvnLeaSdWMAxEcwebNfgfVtBuQm1UUjXnJ9FQ x+0g== X-Gm-Message-State: AOAM5321E7WFCaCDZ+iqMrgIzAK+dcig40ye6BasoMIgFma5TfIEi/is B7GRguP3iPfctfQySi9WnxU= X-Received: by 2002:a17:906:8303:: with SMTP id j3mr4045920ejx.85.1618145869024; Sun, 11 Apr 2021 05:57:49 -0700 (PDT) Received: from agape ([5.171.72.218]) by smtp.gmail.com with ESMTPSA id r19sm4031768ejr.55.2021.04.11.05.57.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Apr 2021 05:57:48 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH 1/3] staging: rtl8723bs: remove unused variable ret in hal/sdio_halinit.c Date: Sun, 11 Apr 2021 14:57:35 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix following compiler warning issue: drivers/staging/rtl8723bs/hal/sdio_halinit.c: In function 'CardDisableRTL8723BSdio': >> drivers/staging/rtl8723bs/hal/sdio_halinit.c:881:5: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 881 | u8 ret = _FAIL; | ^~~ Reported-by: kernel test robot Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c index 2098384efe92..936181a73d73 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c @@ -878,10 +878,9 @@ static void CardDisableRTL8723BSdio(struct adapter *padapter) { u8 u1bTmp; u8 bMacPwrCtrlOn; - u8 ret = _FAIL; /* Run LPS WL RFOFF flow */ - ret = HalPwrSeqCmdParsing(padapter, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, rtl8723B_enter_lps_flow); + HalPwrSeqCmdParsing(padapter, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, rtl8723B_enter_lps_flow); /* ==== Reset digital sequence ====== */ @@ -909,9 +908,8 @@ static void CardDisableRTL8723BSdio(struct adapter *padapter) /* ==== Reset digital sequence end ====== */ bMacPwrCtrlOn = false; /* Disable CMD53 R/W */ - ret = false; rtw_hal_set_hwreg(padapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn); - ret = HalPwrSeqCmdParsing(padapter, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, rtl8723B_card_disable_flow); + HalPwrSeqCmdParsing(padapter, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, rtl8723B_card_disable_flow); } static u32 rtl8723bs_hal_deinit(struct adapter *padapter) -- 2.20.1