Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp22955lfe; Fri, 15 Apr 2022 17:37:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA77OmgCPKTYh7XWHBPKUXq8Q5O4esGlQ5GNlC63hXe5zbqFOLJo3/vsjCG3Nnp1vQw0Bo X-Received: by 2002:a17:90b:4c8e:b0:1c6:d1ed:f6b2 with SMTP id my14-20020a17090b4c8e00b001c6d1edf6b2mr1495088pjb.166.1650069475280; Fri, 15 Apr 2022 17:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650069475; cv=none; d=google.com; s=arc-20160816; b=vjAbghr22uce+eJZ3rsRn1Lto2FvXuHNPAgOAqcc9yiHoY0CWLH+7ytEh4SEp0TX67 RbqY4Gl0a32v3Ug3fjet6gxPUeFFbJ6BVVYcCpjO3a8e6/k5nN9ykTv5jn2Ew3JHRYeS h/h3aI5ykp1I5tDrA0OHErV1OAVLEkDpKr6ysxJ1qr07bLIAwrGrq+QjbQLPQJ2ZtMLw 8HFZP3ODkjxAtXh17YnlaWlFrOt2QQkJ1RgEbSFtkz6pqLh+U/J/U8JEoxSCJ/oRYrIa QX4Mdwz1aOGZj3LQdIVdo/Zbht5c1afccx8r69SOKC4nUr+7RD3Yh10d4K39s0987cbI 6ErQ== 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=Kl4Gb8dibgfKBMDtgfnzoEiPtmtB9KHx9N7a+Sz0WcI=; b=FiuINS/tlu6PWR3y4tzuwVQTauJO5tE83PAFT89zJu5YqlO0t25T606SLlV55XqydG MwbNYCDvOegqYmQrjHZEznSi14k8N3jfqtsWY3U0bUOwVGSN6/1H8hl62Haf1JzbhcTT Qqt8cs3VePUxZVVRtBqmyDaSUy3lwAoXW7gjjIx/szlynk4HBS4oELiqbzIEbMjtZTPZ wQ/ogkzN14Ve1U69zldwDV9dG6Hsr23tmDq7COyn8kpfeAf9rApcwcTpPNSFAZqVoiE6 xcuogp8+bqNjdevSorLsAPjHazgs1CCCXcn2Gr/eiRUNz0usznPK/Oh4vWRQS9v3s5eS WDjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=deJ2fNDL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i13-20020a655b8d000000b0039dd10d957dsi3050851pgr.102.2022.04.15.17.37.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:37:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=deJ2fNDL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1E0D7FDE10; Fri, 15 Apr 2022 17:33:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345890AbiDNTpr (ORCPT + 99 others); Thu, 14 Apr 2022 15:45:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345881AbiDNTpq (ORCPT ); Thu, 14 Apr 2022 15:45:46 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD072ED92A for ; Thu, 14 Apr 2022 12:43:20 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id e10so4881327qka.6 for ; Thu, 14 Apr 2022 12:43:20 -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:references:mime-version :content-disposition:in-reply-to; bh=Kl4Gb8dibgfKBMDtgfnzoEiPtmtB9KHx9N7a+Sz0WcI=; b=deJ2fNDL/pLSKKh3BMB6qBEs21CYtmEZkftWXzK34PNn312yvbZSSOBjm3M1yJFr0O TS9VXo+ttltY2auH1XYw+87cgy4EBeJNkPe5mdqPKX9EREoNVktYo4OjezxSpQfYTLx9 wtQxwbpehmMiDomokie29JozB0G8AaQkBtbn+WGE5lgak+sfEw8lC6V4SV5M5a7+GpOx IVgcCNsXTk1HgXYopktsJgdaEyFa1Zpd2sg6YyZT9AEXDyeC6FtTP/B858INzKL/sVID ow9bUsclLJ3MRjdNZU3LX0Oomz0SlTBkk+3UCLU+vgQj+W8in0YlRSxuc8s6x/lZBnSx REPQ== 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:references :mime-version:content-disposition:in-reply-to; bh=Kl4Gb8dibgfKBMDtgfnzoEiPtmtB9KHx9N7a+Sz0WcI=; b=DC3L5pDLuy2oVvWx0numiQs2XhQHC1eLc2vpuY1fJ/h5RS8R/h/jtcgooifLl6zkI0 ua/Gpt6rXC9NeIOONU1e7uPZmub/38XdbmvbGeX+Z9A+6/lHbRpvfRJG7qUNNZrfAU+w phf14ocZMN4JyI7fWmNlbF9imVMDkGD7yeqUL0MkmmDiMCodl5xPREgNKU79w8TlItTQ YH/Mjih+mP30Xmf4/ypn1hvk1bb1PLvtl0EPrQOHEXoH5nGCBCSNupicM84HPtTdGwCn CtV7NFCNi1GHoHBVXlO5xuyjkzL84838dc/+YPxVYLXSUDp1UvXvgDyAq1RXPs3frcmM uRpg== X-Gm-Message-State: AOAM533MoP30Z/IZ6hsZxerGGP8uKOR/+33dq2R43+cRNUkVdnwWAVt+ u1bXG+y8u7TmNuOvA4RvAXI= X-Received: by 2002:a37:9a57:0:b0:69b:fbce:8035 with SMTP id c84-20020a379a57000000b0069bfbce8035mr3156152qke.187.1649965399839; Thu, 14 Apr 2022 12:43:19 -0700 (PDT) Received: from jaehee-ThinkPad-X1-Extreme ([4.34.18.218]) by smtp.gmail.com with ESMTPSA id h5-20020ac85845000000b002edfd4b0503sm1829105qth.88.2022.04.14.12.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 12:43:19 -0700 (PDT) Date: Thu, 14 Apr 2022 15:43:15 -0400 From: Jaehee Park To: Pavel Skripkin Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH 5/6] staging: r8188eu: replace spaces with tabs Message-ID: <20220414194315.GC4144553@jaehee-ThinkPad-X1-Extreme> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 13, 2022 at 11:34:14PM +0300, Pavel Skripkin wrote: > Hi Jaehee, > > On 4/13/22 23:11, Jaehee Park wrote: > > Use tabs instead of spaces. Issue found with checkpatch. > > WARNING: suspect code indent for conditional statements > > > > Signed-off-by: Jaehee Park > > --- > > drivers/staging/r8188eu/core/rtw_mlme.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/staging/r8188eu/core/rtw_mlme.c b/drivers/staging/r8188eu/core/rtw_mlme.c > > index b943fb190e4c..7a90fe826d1d 100644 > > --- a/drivers/staging/r8188eu/core/rtw_mlme.c > > +++ b/drivers/staging/r8188eu/core/rtw_mlme.c > > @@ -722,7 +722,7 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf) > > pmlmepriv->to_join = false; > > s_ret = rtw_select_and_join_from_scanned_queue(pmlmepriv); > > if (s_ret == _SUCCESS) { > > - _set_timer(&pmlmepriv->assoc_timer, MAX_JOIN_TIMEOUT); > > + _set_timer(&pmlmepriv->assoc_timer, MAX_JOIN_TIMEOUT); > > } else if (s_ret == 2) { /* there is no need to wait for join */ > > _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING); > > rtw_indicate_connect(adapter); > > Not related to your patch, but looks like `s_ret` can't be 2. > > rtw_select_and_join_from_scanned_queue > > rtw_joinbss_cmd > > rtw_enqueue_cmd > _rtw_enqueue_cmd <- always returns SUCCESS > > > Other functions from calltrace may return _FAIL, but _FAIL is not equal 2, > right? > Thank you for your comment. Since _rtw_enqueue_cmd cn't return 2, should we replace 2 with _FAIL? I can make this change in another patch. > > > With regards, > Pavel Skripkin