Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2139353pxb; Sat, 28 Aug 2021 05:47:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW0IoBkQpxDfiO60cj2gql22Sb2gqcH8gZt8b+SDj+R5dgU+5HW2+y0oy0gVIoPjX3e39j X-Received: by 2002:a02:1cc5:: with SMTP id c188mr12573650jac.46.1630154831614; Sat, 28 Aug 2021 05:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630154831; cv=none; d=google.com; s=arc-20160816; b=gJANIRMPzavWEflsf52GiPKPHUAYxCLVTCPyD1ewZaqxAuxU8az+lXmhVXMfVqdXJQ qPdUyHaIUPx2OVrasLBW5/1wQGhIWuGPfR7visFEk0fV6vVc8tKVFU/RJLwml87/eiCo BiNUe5MACUFmZwsFqubzwC57+393P7FDU3gmUHmlyfE9lGRffhQ1RPPQVfPimSyxRA8D FihsRnTl9SAvOCT7VHdTXhVKjdtxovOjPc73BJKbR1A/b/9iZTeonFf3N0UK9Ra+YciC X4uL2bzgHQNoIJG+s+N6cWBYWvVlKww2CXLY/xCCEPM8bn34UGRMzCYPavSsGFZgOcqL CxnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GCHVrZHXKCU1H+5v0eNhhS2fzXulwWS9z4uFv6L4bSA=; b=lYrBAKtRiwT1mU8vsn7I/KZtY5tc1GK/Wlg97XsHgn9pPohlYjrEDOUk5IpzWrBrgm W8wONhU43x5TvNO+5hdM10mi//kSzacHkBsddqRhxFZM0Gb1C0c8GQSJgxCK+o1i9xZ/ pYMSKeotjGqpXtFniNtmOVp9IiniT3tCatYqwvwJx0JuyUafifSIP6qFxvdtOfAS7GFu M+4rUnxWSb7jmjYghhUcx94qa89rl28f/lm7mZpl1/Wm6IctF7gzBB+d70+VQDmQX2vM 7KReuKWjdvDGlshGJ8qpoKz1Lg723rlT/Ee7SNLUW+1LDWPqN6Ovjkj/wJ4Br2iV+Aza Uf7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hO1VRgqe; 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 f8si8600357ilu.107.2021.08.28.05.46.59; Sat, 28 Aug 2021 05:47:11 -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=hO1VRgqe; 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 S234272AbhH1Mq4 (ORCPT + 99 others); Sat, 28 Aug 2021 08:46:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234012AbhH1Mqz (ORCPT ); Sat, 28 Aug 2021 08:46:55 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40B5BC061756 for ; Sat, 28 Aug 2021 05:46:05 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id s29so3375430pfw.5 for ; Sat, 28 Aug 2021 05:46:05 -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:references:mime-version :content-disposition:in-reply-to; bh=GCHVrZHXKCU1H+5v0eNhhS2fzXulwWS9z4uFv6L4bSA=; b=hO1VRgqe5cZTyYKXcExM01SXO5zG0rpjx9TSpTOvov/BIu3ukaZIdqLjXdrYnZRJ2S 1v/hWlUKtJQMUrMEkXz0daKx780PS7csu0/NMId//y9fPFhewtVygoDCt80W8tW3+BFX kGpsDd9ESSuVxeB1O+S2FqFeEVmYhPBRWvh7JZFMkuwimuPT2lOzjhAqchyQy80Wr/K/ t5ot4RoQOukw/CqIw7XYk3AEuDXN0vkviHHF8O0ldNi7xMhXNbAzQXw/mZKpLcTpXQk3 zseCdMqzmA2ClXhms7XJRoH+W8ctXsgwZFlrKproxuRMTsvDeC6qLN8AXLC6bis0Aaj8 cC/A== 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:references :mime-version:content-disposition:in-reply-to; bh=GCHVrZHXKCU1H+5v0eNhhS2fzXulwWS9z4uFv6L4bSA=; b=SM7tpFdL/kBSCOnZwMwuoooS+xrlbGGpjs04BPaIFOFCvBKBngi38oUvLhvS4bZnkq i7pbpmWJsdkkU4OEJ09DKxia2j8bwlgtqOkaOTba5SQ9vmr58AeCZ1AtNajpdnpIOWH7 Cn5tZfQzJX17+r4AQ2olTd5EJyQTS+ojGBs94JyeHHQ11D4U52ZsHyPe9z177Ipp3rlX BhItOj/0vDSutOoqi3M2Ih5cdP+NxF19HAspSpFNE7ofIeTgx6oz5VvxxQa2aEOHH0AU tu5jjWwWmyndZteziSba6ScHAXuImIlGKG+Kj0U6nA6KWgMT6+jaowvlq6kgcRBE95LY DkOg== X-Gm-Message-State: AOAM5309zXa72RiCAf+n3+qjDM/NWmO1jWp7Rq0OdO4Jus+19bQxFvE5 DXSdZL2qurjZqTuIFZv7JhY= X-Received: by 2002:aa7:8c41:0:b0:3e3:1279:105 with SMTP id e1-20020aa78c41000000b003e312790105mr13924020pfd.80.1630154764625; Sat, 28 Aug 2021 05:46:04 -0700 (PDT) Received: from user ([117.98.200.228]) by smtp.gmail.com with ESMTPSA id u17sm9257665pfh.184.2021.08.28.05.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Aug 2021 05:46:04 -0700 (PDT) Date: Sat, 28 Aug 2021 18:15:59 +0530 From: SAURAV GIREPUNJE To: Michael Straube Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, nathan@kernel.org, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH] staging: r8188eu :os_dep: remove condition with no effect Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28 Aug 2021 12:19, Michael Straube wrote: > On 8/28/21 11:31, Saurav Girepunje wrote: > > 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 = - else > > - ret = rtw_resume_process(padapter); > > + ret = rtw_resume_process(padapter); > > + > > return ret; > > } > > Thanks for your patch. Perhaps this could be further simplified to: > > int ret = rtw_resume_process(padapter); > > return ret; > > or even: > > return rtw_resume_process(padapter); > > Best regards, > Michael Yes, Thanks Michael. I will make it more simple and send v2. Regards, Saurav