Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2396448pxj; Sun, 6 Jun 2021 00:44:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykVf8igMqdUIjQoEYqpgJeix1dkLEFxrc3E5a9Kmab/+QZ6azbdOcatK2/N5eOm3bSAb/S X-Received: by 2002:a17:906:2844:: with SMTP id s4mr12318374ejc.263.1622965474498; Sun, 06 Jun 2021 00:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622965474; cv=none; d=google.com; s=arc-20160816; b=LzyO1NWtKnSngMnbsPVpXoM3imoCxXkNopq2gKzTvmpTVuszc+FU4B7Skw+Fg0AhUb wKZ143Uf6rA+HghXkvIEX4phihYLCe1R0aVtAItqxcKuEWGck7zyPss/tLokQK/6NVCu cYxP8WZs1K0RNnGfsaGacLj62hd5o5aNx6scoG6qL5DUNsV9frqv/gKr11g9rer+7Q7r LuXPtt1XYPei1/9xBenuBjIttrXyCbQKXC3f/solDFxFJkg6YRPKHLYchXsfQfCJFy8w bUpK7iAgHsfZetCNJr/gelOr4V1lcx3K3O26g3vkZsSyHHqQcduJ2dJ2qF9Mk+JDPn5k gxYg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=jEkqcK+ZsCfx0RKoS5sCh6znx6o98CrrxGkDXKRKUsg=; b=NyRs37zgbtfI/SWIfYCQHEn2XKQluf5N89Ss4kDFjx1FCDA8PT5XHFCrDwY6U40r0K 8xR9FUqLoNrAMw0+zQmAi1WMuNbSO+B1mrN1PTUrmIUfvjWlGUfMwGx1q+szKcl8Uae6 gfLT22svbopAc+cWClQ0XJUuHF39MMH5R0KNanJDzmcI1po/nEQgJz7mVxvhHuly25Iu A2A8MhyMDS1ns+gLtc4tE7CEP/1fqTCc+4fuSqA3Ghr59h8bUm/n/KGX1v3+ccrTUtew sIzZbNXgLJNGKuCZqT4mADj7yuJZKEwZpFsR4rsamzxCoOADXFt7BtqgMT2uIaYEcK35 FBKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H8mSCiPt; 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 z19si10508661edq.486.2021.06.06.00.44.11; Sun, 06 Jun 2021 00:44:34 -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=H8mSCiPt; 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 S230085AbhFFHpL (ORCPT + 99 others); Sun, 6 Jun 2021 03:45:11 -0400 Received: from mail-ej1-f42.google.com ([209.85.218.42]:33645 "EHLO mail-ej1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhFFHpK (ORCPT ); Sun, 6 Jun 2021 03:45:10 -0400 Received: by mail-ej1-f42.google.com with SMTP id g20so21389769ejt.0 for ; Sun, 06 Jun 2021 00:43:21 -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:mime-version :content-transfer-encoding; bh=jEkqcK+ZsCfx0RKoS5sCh6znx6o98CrrxGkDXKRKUsg=; b=H8mSCiPt+rS5B5BvuBtl7dA6LWtO3csDe0YNYRKWYxTr0ervMpKkkZYsW4KCLFJ0/+ 1XQ+5LhuocKbptJrS1hhqm6GTr9vnZnjnedSRBNtg95k5qdlelAv5rAIEXHFgYsy0H11 nbtO4DMfgQOMGSIKjwo4IF3UPY/VvVAPjrEK7WMnFK3C4aD1qhZkFKXDFUW+zD4BKhae 320p4HTfVU8PN48ZmK4RcKp9Oa+c0M9Ch1VKI9/95VoQzs3mz1iRwOMJmGl8iIs66TrH F6S3NPo4JZu2HWPJc2dHOaSG+MRd5QepOwTW1HHpXccWJKVkdB2Qzic2jDZc7FIAt26W qAyA== 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:mime-version :content-transfer-encoding; bh=jEkqcK+ZsCfx0RKoS5sCh6znx6o98CrrxGkDXKRKUsg=; b=gUQbJDRVt1ua8pUmEWqP1HweP7+YKOcnSsiUmMQO1Mp+Iou9b3hB5K9e4avKKk1GjG cESDkMis4vZBi0l7owHO/5/k9HrwtJxOiyBTfnYSRzS4aVgIi4wG9WZzLasabT20aL3l vqnK+Xe9E7AAkANfW+QWNlp1Bmbtp55hW+03vQNY1B8SB1ivMwc/j/adljYnWIVOnqcD PUQRUEnXaTcSDOsgWs+qaans4eCW4AOXgDa8/5Nf+fWlCHfrbjJjr5QI5Gs7pXR+B3o1 wiDfRh4AVBISMLREYlG9nQtvACDkVyAti3n6NCwXQS/Ai7JLx661lIKLT94jddTnUPaC Y8hg== X-Gm-Message-State: AOAM530wn7bpNh8Ps2g4Vkw/YEKN7dVUfqgZfaa3Q/I6cW/qjlT8f3ft qTTdKLTJGoNbgZZ7RdJC2KQ= X-Received: by 2002:a17:906:86d2:: with SMTP id j18mr12202709ejy.180.1622965340965; Sun, 06 Jun 2021 00:42:20 -0700 (PDT) Received: from linux.local (host-82-59-55-132.retail.telecomitalia.it. [82.59.55.132]) by smtp.gmail.com with ESMTPSA id i15sm5108804ejk.30.2021.06.06.00.42.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 00:42:20 -0700 (PDT) From: "Fabio M. De Francesco" To: Greg Kroah-Hartman , Joe Perches , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: "Fabio M. De Francesco" Subject: [PATCH v2] staging: rtl8723bs: os_dep: Remove conditions with no effects Date: Sun, 6 Jun 2021 09:42:16 +0200 Message-Id: <20210606074216.26495-1-fmdefrancesco@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removed conditions with no effects. Detected by Coccinelle. It seems that these conditions with no effects had been inadvertently left while deleting code that had to be conditionally compiled by unused definition CONFIG_AP_WOWLAN (see commit dc365d2cc579). Signed-off-by: Fabio M. De Francesco --- v1 -> v2: Rewrote the changelog according to suggestion by Joe Perches drivers/staging/rtl8723bs/os_dep/os_intfs.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c index 213ec5b4ce98..2035573ee5a0 100644 --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c @@ -1187,10 +1187,7 @@ void rtw_suspend_common(struct adapter *padapter) rtw_ps_deny_cancel(padapter, PS_DENY_SUSPEND); - if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) - rtw_suspend_normal(padapter); - else - rtw_suspend_normal(padapter); + rtw_suspend_normal(padapter); netdev_dbg(padapter->pnetdev, "rtw suspend success in %d ms\n", jiffies_to_msecs(jiffies - start_time)); @@ -1268,11 +1265,7 @@ int rtw_resume_common(struct adapter *padapter) netdev_dbg(padapter->pnetdev, "resume start\n"); - if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { - rtw_resume_process_normal(padapter); - } else { - rtw_resume_process_normal(padapter); - } + rtw_resume_process_normal(padapter); hal_btcoex_SuspendNotify(padapter, 0); -- 2.31.1