Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1581339lqb; Sun, 26 May 2024 07:33:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0WpCrdBcRscVcvxG4Xj82XgSAMRdp8h1hHzF5nDpeDo3l4YvSzRkk+moNr4Q2T8Xq80OeK4934M5jHBhukER/6vhB33kXFD+FzsvCbw== X-Google-Smtp-Source: AGHT+IGaIOh9Za3LDXN0Lvbkjc6e2Z01jlbkwtokyimRAf3d8/RXj9pJ/e+LuH8c7LeK6COA2OBU X-Received: by 2002:a17:903:32cd:b0:1f4:5c4b:dc48 with SMTP id d9443c01a7336-1f45c4beaffmr62433445ad.11.1716734034001; Sun, 26 May 2024 07:33:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716734033; cv=pass; d=google.com; s=arc-20160816; b=dLDAQ/+o00hSo1uthe/XRw83zr5XPBhWvwx7fzoON1SifCCIpNyLfxIlUJQRyBVGqb rbwSu8K6a9MCqQXDDCFpFcWFApFaKZ7LLET36GqEY84zw3toGo7cwzuejXgRi0KExoCG l4DMuCtaocY1dK6KxMlh44eMGT35r1LLfEYn6sXF7hfz8Njp5tVJxGatuOUhp2g2krct Pgx6jaqgwRDV4sO3cLRyJrBCc3jzKgFH71gpcMUHkyGQ9ltHI0NiTzH1W8SxDWILi3yH hH/TfZvybLTlVXVD8HBP7IzaotdGYo+oCe9JzS+4z9W1Lg5qgCDL8ZfZYO51vDEsp79I CGfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=YXGpB/omnYIn3jauojGC79gVRJe/9Up/TN/TGtNhfpY=; fh=NjlDC6V+eUkJfTvVNEFSC5PK8BsnfYPiCFmpN2EQ6ZQ=; b=a5s+yzngulj7J3whM/B9TkQxSS1NYKIizW33IrVrxbRYlORhKI3/uBWcQPpBJw+10z 3aB9MFTyJAiBZzJVt59kM64tgZ50lbQRpX4kxYQWamZc0zHUn+l8hvkpM1OAiQA5HVX1 1vIRUGOo4c//6k0hpk4QmidVNLsYfrbf5milYapLcxt07eZ9mPOHQCHDAGQgkYTPSn+g QQ+trg8tEVVd10WoVcODCrMQgh61saYHYxZm6GIXmQe2QcxjAz2kFQeXUmcXHpXknVi+ BS5QtvISkcxhrwVKLb/sonVeuKwRn3PKHv0ktA9/eiJnO/MNlA+Eeay0e9u33DbVb53D SwWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ByHYsSYE; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-189752-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-68222db109asi5075024a12.236.2024.05.26.07.33.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 07:33:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189752-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ByHYsSYE; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-189752-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A0DD728139B for ; Sun, 26 May 2024 14:33:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 847C0171CD; Sun, 26 May 2024 14:33:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ByHYsSYE"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="hI8HtTao" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3582D534 for ; Sun, 26 May 2024 14:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716734027; cv=none; b=fbO36277leSEo65y05s+AzlRF70WQ8q6noorsV6mbFxZae1HttkVU/6Vk63hpTy/AmSoGPdiYrG8ohLGDMXF+erAYuEpiBnN0vZRnh2HUdf/J21MVo9Z3HPW/0qTOvwFccNGAjGqluFMrh8ht9/N2IKORUeUR6gEr4REp8uKL8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716734027; c=relaxed/simple; bh=QA0dpRGMhYJPQHPub7gg3sxVHBbUEmvxO/7j2q05/bw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X0O7PuTL1EH81+2AyVpz1gJqQ/L5LmYbCIXCEWOfab1Asm/Ur5A5bPxonobYxBssB4++s7oggW8zMGr0MRqrjfwdgGI8FEeZgFxe4dU0eiBSVzfN520LVZs53McjRWS2SPUk/QmsILXEsLvc5bLmLUWD9Rc1dB7Lod4lcbPGvXU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ByHYsSYE; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=hI8HtTao; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Sun, 26 May 2024 16:33:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716734023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YXGpB/omnYIn3jauojGC79gVRJe/9Up/TN/TGtNhfpY=; b=ByHYsSYE5tuKjQwJK38UEN8eieTg5f3+UTMYoJk+nPHiHyswtdsQy6i0kGbTIuNwO5y0Xt rhWnTcQgFT4U5r1SdrgIxy/I57nRQH0FtAvxGWUcMpSbfeJOXWX7qdTRLtKq08CNQDj4UB 1UHT0vlmqsQWJB7tIcWqSkghxL5DNaAyPy3rJjcNQeo5FFApWx7Mo1pjYGcHKQnRf4jUoO 8H4ArKrc+gvgtoGe2MDmFkGDOrgal9vfeTBvHk5zsFZJdLe6funqh11zTnoPj16+MkaxmJ ApOvJhlzvT0nO2+4HO5pPdxWPAVJbX5O8/zrHtOMBQH+UF4HLR+gXZsGXRsNmQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716734023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YXGpB/omnYIn3jauojGC79gVRJe/9Up/TN/TGtNhfpY=; b=hI8HtTaoVnbK2qYoSmRcFsV7t5186FubjTtHnGJ0z4Zzh6XYvDr1/e3SqPwce5iH64pzGl QdTR9Xg0dPFYcyBQ== From: Nam Cao To: Michael Straube Cc: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] staging: rtl8192e: remove unnecessary line breaks Message-ID: <20240526143342.tPBauUTi@linutronix.de> References: <20240526111928.14574-1-straube.linux@gmail.com> <20240526111928.14574-3-straube.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240526111928.14574-3-straube.linux@gmail.com> On Sun, May 26, 2024 at 01:19:27PM +0200, Michael Straube wrote: > Remove some unnecessary line breaks after '=' and '==' to improve > readability. > > Signed-off-by: Michael Straube > --- > drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 24 ++++++++-------------- > 1 file changed, 8 insertions(+), 16 deletions(-) > > diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c > index 2fda44c5a412..5392d2daf870 100644 > --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c > +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c > @@ -1392,8 +1392,7 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev) > continue; > > rf_num++; > - cur_cck_pwdb = > - dm_rx_path_sel_table.cck_pwdb_sta[i]; > + cur_cck_pwdb = dm_rx_path_sel_table.cck_pwdb_sta[i]; > > if (rf_num == 1) { > cck_rx_ver2_max_index = i; > @@ -1412,27 +1411,20 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev) > } > } else { > if (cur_cck_pwdb > tmp_cck_max_pwdb) { > - tmp_cck_sec_pwdb = > - tmp_cck_max_pwdb; > - cck_rx_ver2_sec_index = > - cck_rx_ver2_max_index; > + tmp_cck_sec_pwdb = tmp_cck_max_pwdb; > + cck_rx_ver2_sec_index = cck_rx_ver2_max_index; > tmp_cck_max_pwdb = cur_cck_pwdb; > cck_rx_ver2_max_index = i; > - } else if (cur_cck_pwdb == > - tmp_cck_max_pwdb) { > + } else if (cur_cck_pwdb == tmp_cck_max_pwdb) { > tmp_cck_sec_pwdb = cur_cck_pwdb; > cck_rx_ver2_sec_index = i; > } else if (PWDB_IN_RANGE) { > tmp_cck_sec_pwdb = cur_cck_pwdb; > cck_rx_ver2_sec_index = i; > - } else if (cur_cck_pwdb == > - tmp_cck_sec_pwdb) { > - if (tmp_cck_sec_pwdb == > - tmp_cck_min_pwdb) { > - tmp_cck_sec_pwdb = > - cur_cck_pwdb; > - cck_rx_ver2_sec_index = > - i; > + } else if (cur_cck_pwdb == tmp_cck_sec_pwdb) { > + if (tmp_cck_sec_pwdb == tmp_cck_min_pwdb) { > + tmp_cck_sec_pwdb = cur_cck_pwdb; > + cck_rx_ver2_sec_index = i; > } > } else if ((cur_cck_pwdb < tmp_cck_sec_pwdb) && > (cur_cck_pwdb > tmp_cck_min_pwdb)) { Reviewed-by: Nam Cao Best regards, Nam