Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2036854pxb; Sat, 28 Aug 2021 02:32:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYNH7JDJApKucpOQIbv4svQNpCm1MvmNvyhF6fX4J76Q/Okb/i80m9DHSmezgSu+8lKEja X-Received: by 2002:a02:1dc9:: with SMTP id 192mr11741580jaj.92.1630143162453; Sat, 28 Aug 2021 02:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630143162; cv=none; d=google.com; s=arc-20160816; b=VXKkTHzNxld/C0d70LrTGmImDINU3X/kje/JhkKIx4HuljxOBg+xIwUrFy8KB1gkH0 iSkUMtoXnSVMx94PJXdRv1qRitQijnEJom8U6DnT3Bp3YOe0AWXT+y5cr12zcQvFVzs/ B8BAo/Wpugy/3cFzYalM1FsCZunmUBf8wJ7oQE/GnQWYwCCwAbSjlhDy5j5fOCv2nh8/ WVDt16Bpq4xVpvMpuEWXrZ8c09nSyu5f4SCsGZxuWkCnDdVnaGCmx73Ex1d6j0lV/C7p UwIC2dEaHhD2+syxTxXWyyaFsOXisCwLCtYpYN0ZCYyr6t7ZIeExsLe4cvLtqbxGiaL5 /u/w== 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=vRtqy8BGTAIhYSyC7XDIqe1t23R3gBc2YwajuqXH6wI=; b=EIPptGUuQZmPFwNBlOzqWLz0KlfTuJbV+pQDHuFO2+atPAwpu4Z6/ZlF8cNuzbTn5p uBOf06rTR/sUVJMb56/9Cu1PD7//JMKkiirltl0loBvQNbzOvru6L0EdlaZ0mcx23biR +iY8DRD+QeYSvozXilHjfipB8sI1ADWgxkYMoYJ9x7Ph28UayhVJnyb+mCo3+h09Q4WQ eCemMpuJrRLO2wVuqiRbJTXliufar8rL7LBUKDuvPO6wgRnwd0s5DPBPPsfp0H/q7BEN TVDMt5uD5f/MXl/xSD5OIyPOy6JDADyX8Nb3tYqKDIlxh945KFR3vbty8hKVDfAzkmck HY5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TtuSbONu; 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 c1si7580292ilj.76.2021.08.28.02.32.30; Sat, 28 Aug 2021 02: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=TtuSbONu; 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 S233554AbhH1Jci (ORCPT + 99 others); Sat, 28 Aug 2021 05:32:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230444AbhH1Jch (ORCPT ); Sat, 28 Aug 2021 05:32:37 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B0F4C061756 for ; Sat, 28 Aug 2021 02:31:47 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id q21so5654918plq.3 for ; Sat, 28 Aug 2021 02:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=vRtqy8BGTAIhYSyC7XDIqe1t23R3gBc2YwajuqXH6wI=; b=TtuSbONuWqg9lI0GH29gZQ6PTf0mpymCLbmeH2P/RHnwjza7HCnt2yJfPui/PmWQrr asSqysk2u6DwyCgwMTK69Bk+ZCL7C1l1mqxim1PKtpj1Vzb5iFdmRVk6OXn6q+q/c8ea Magh13MuYbltvbOZjySOutGHFMLC3LrNp4YwbjONbPZuqtEOlNXmLyXN2lmG1/SJWN+S iVnDobKPcvBcI1rtVa5scMkyB++3BE33c8uBchMdzIsPCtafzbGpvRer1r5mA2edRUk3 jcv6tCfUPkHWwmVB1H0O5oZa8q+Adv0KhS+AzVIe/iVL2DOtX6Q44RuAJKZ24YTAmZ/h FOlw== 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:cc:subject:message-id:mime-version :content-disposition; bh=vRtqy8BGTAIhYSyC7XDIqe1t23R3gBc2YwajuqXH6wI=; b=q9BkusJVsHtgAdqQcdmvGRusX4u3aMxZF6jFXAwLSxiceNe4orig/Yljiu8KFLqkeK j06LjxHwxsps5ESFcUFcrPG6sLR9pmiXJK04+sNEa1JyZV7xbv3Ps5PP/1BTry+U2jyG QB36IQIuWn819Zertz7KbO6sV7ee9YlhHGrbRRYnKJBOuYI3yrEEZImjprUk60OIDUZm 4rHyFG/2ccIGqiP63SNvve4+R1UbxuDKOoBODFmzk4GjdKL5kfAe891KJIxf+BAMvgSj 01ugwa8OYmX0yrDyRs1Ot6JGX2Z54ux93zhHII5ktXPG6SCOQ+9MU+giuLONYVpUbyWp gAUA== X-Gm-Message-State: AOAM531lL/TTRyrsb9AHVOlCmOInm7ljg8ayXf43AYBlneAX8AKnOu1h TyOa06yRinq6ln5u6PQQxN8= X-Received: by 2002:a17:90a:3cc6:: with SMTP id k6mr15321469pjd.134.1630143106789; Sat, 28 Aug 2021 02:31:46 -0700 (PDT) Received: from user ([117.98.200.228]) by smtp.gmail.com with ESMTPSA id j2sm8540385pfe.201.2021.08.28.02.31.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Aug 2021 02:31:46 -0700 (PDT) Date: Sat, 28 Aug 2021 15:01:41 +0530 From: Saurav Girepunje To: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, nathan@kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: r8188eu :os_dep: remove condition with no effect 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 the condition with no effect (if == else) in usb_intf.c file. Signed-off-by: Saurav Girepunje --- drivers/staging/r8188eu/os_dep/usb_intf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/r8188eu/os_dep/usb_intf.c b/drivers/staging/r8188eu/os_dep/usb_intf.c index bb85ab77fd26..849563b54727 100644 --- a/drivers/staging/r8188eu/os_dep/usb_intf.c +++ b/drivers/staging/r8188eu/os_dep/usb_intf.c @@ -496,10 +496,8 @@ static int rtw_resume(struct usb_interface *pusb_intf) struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; int ret = 0; - if (pwrpriv->bInternalAutoSuspend) - ret = rtw_resume_process(padapter); - else - ret = rtw_resume_process(padapter); + ret = rtw_resume_process(padapter); + return ret; } -- 2.32.0