Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2149532pxb; Sat, 2 Oct 2021 08:05:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwME7RkYiTSH75EHjazaK5vFFnJGNI7ajQYd88im+0tBkymce1AUhOfdA6pQFSMiH9ZeJ6e X-Received: by 2002:a17:906:318b:: with SMTP id 11mr4867552ejy.493.1633187156165; Sat, 02 Oct 2021 08:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633187156; cv=none; d=google.com; s=arc-20160816; b=KY3oATgCID4B/BfoAtKfqedf0RAoBOjJ7Q9HwrXLuWKgNmpcvSs1t3YZHuzdn29szJ YElwYBuYHRapD5CCvhqTVn2NWOo+ectipTYX4PqC7BWkKeZjyKmkAaorjR7ZZqWxZhfA 3e7DzgDv/7lrIbFKcOHLXPuNy70ORkmYk8Dj6J4fNNO//Uk1RR2lJ55EKwgauyD/lcII 7u8RH3qnG69B6o53so5FsPRzF4X7cuG43rczS7gFIAZJtxhnuJKj40SMO+ma2RJu7X+K 8e1TFY4tb1J1myYWpg/u7JRNwsFOP/h/UO2KvRxGzvADgqKWWtHjNrMvXTB4HnNebUH7 gpkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=t0Eu+or4Zx1l/oph1/ldEs4+NBM0UXePlavm40JzuOw=; b=1BgcDjsvev9Y1+qMBTS38J1yM0INGD6+BAY8QeyQjNQsOp7YM7cw09ZxzbsTXDgjfo v61/u70DvSMR5MM5n+UtBkQOyHdO4bMgkI75BX1mRQq/W8PnqEfxKbP+y1JhvW2ot70G Dvwn5F+sjiT9F8si7+BeJq9mmr4IP/T/TsKBHmX4rciq3P3LydxW1BEfD6bU9PzOntlb ARB4ggHrkonj2z7OjbzZRzlZeZrgDywWSmHalEIO/A//zQNzOhWtkxULJFsosm06kg4H NK2+G0wwZipsBBSex64QNTtcoaTVkE0IXa/29p/d4wlJKH2EEMBOXhEMsqNRrYvvqQjG 5zHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=n1tBbcxo; 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 js9si12360135ejc.523.2021.10.02.08.05.11; Sat, 02 Oct 2021 08:05:56 -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=20210112 header.b=n1tBbcxo; 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 S233411AbhJBOoh (ORCPT + 99 others); Sat, 2 Oct 2021 10:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbhJBOog (ORCPT ); Sat, 2 Oct 2021 10:44:36 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DABA4C0613EC for ; Sat, 2 Oct 2021 07:42:50 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id l6so8190593plh.9 for ; Sat, 02 Oct 2021 07:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=t0Eu+or4Zx1l/oph1/ldEs4+NBM0UXePlavm40JzuOw=; b=n1tBbcxo1UuzwW2C0/tMbR/wIjpcQLgxq/HNZ3l1PqrJ34OaPqIlZ8pGRJcsu2Wrex XnewG+oNVmxOQqWh4hPRMMTa3UkT3YKKcwM20omSOe6Jc/HLWKoCuG1R4xfzhAyHDDgw L5QJruf7D9WrrroUBO7AkFMtM22ntxfe0w1BLCwUp56+dcE4DVn/kuSt94yXH8npkzFL yFTw9jGBnu6QjfSvJf50LXVuotjZEHSOQDvUWhsKtK88dT3KutLCvT5Sg0U6yRzO9Udp 4tvTUxtJIsErwbm40SlqKYXMOO4T2vjBtfKYIHyt3v2BpbWKCCbDDM0u+fGihH3ar2em 7EIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=t0Eu+or4Zx1l/oph1/ldEs4+NBM0UXePlavm40JzuOw=; b=XM8fiFo/32GcAML+BmeD3zw0jE1iJ79xenDVat49HHbbGRmLdfkO4W5DrdfcT5ljAb fuU9sncFsEIB4svpS+xRAKyX5lDStiPYs8DFZqIUAMoVs/xivpYZgdSU+AkJvoObw6G2 8QbQzfL3OCAtx9OQXmvQUB9+V5n3grrxXGjNjGwUFFe10S5PhICMCB4GO0fPgyvJMbBk 1f+fTN+KZU5wBR0Wa0kj9NINDmtSyFTl/yrJHGPwwjGn46+U3mYdXPP5HY6UawYNBiL/ OXcg/FVooStF30Gty8hGJWFA/d79AeRtz5MuNYpJbxS3Dmig8R5Xc/YV6ljl/nxkkHnf EaPg== X-Gm-Message-State: AOAM532qUtn2VncmMeIch7t6UJksmKMlfGEAyBEQuTalupooFwgc5BUl irhQQprft+WqxPbzDHtB4eY= X-Received: by 2002:a17:90a:307:: with SMTP id 7mr19673013pje.176.1633185769726; Sat, 02 Oct 2021 07:42:49 -0700 (PDT) Received: from user ([223.230.105.60]) by smtp.gmail.com with ESMTPSA id i12sm9261448pgd.56.2021.10.02.07.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 07:42:49 -0700 (PDT) Date: Sat, 2 Oct 2021 20:12:44 +0530 From: Saurav Girepunje To: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: r8188eu: core: remove power_saving_wk_hdl function Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove function power_saving_wk_hdl is it just calling rtw_ps_processor. Instead of power_saving_wk_hdl() call rtw_ps_processor(). Signed-off-by: Saurav Girepunje --- drivers/staging/r8188eu/core/rtw_cmd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_cmd.c b/drivers/staging/r8188eu/core/rtw_cmd.c index 3a70776f3304..44a1df4f51d1 100644 --- a/drivers/staging/r8188eu/core/rtw_cmd.c +++ b/drivers/staging/r8188eu/core/rtw_cmd.c @@ -1649,11 +1649,6 @@ u8 rtw_antenna_select_cmd(struct adapter *padapter, u8 antenna, u8 enqueue) return res; } -static void power_saving_wk_hdl(struct adapter *padapter, u8 *pbuf, int sz) -{ - rtw_ps_processor(padapter); -} - u8 p2p_protocol_wk_cmd(struct adapter *padapter, int intCmdType) { struct cmd_obj *ph2c; @@ -1890,7 +1885,7 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf) dynamic_chk_wk_hdl(padapter, pdrvextra_cmd->pbuf, pdrvextra_cmd->type_size); break; case POWER_SAVING_CTRL_WK_CID: - power_saving_wk_hdl(padapter, pdrvextra_cmd->pbuf, pdrvextra_cmd->type_size); + rtw_ps_processor(padapter); break; case LPS_CTRL_WK_CID: lps_ctrl_wk_hdl(padapter, (u8)pdrvextra_cmd->type_size); -- 2.32.0