From patchwork Thu Feb 1 08:18:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 195196 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:3009:b0:103:8516:c03d with SMTP id sb9csp4306dyc; Thu, 1 Feb 2024 00:19:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHN+mi3Lq5fD384hZNsw0vFEGockvznoIQCKZ63hRvDHzWPl+X3drKWACPBXoK1YQNBAaGI X-Received: by 2002:a05:620a:678:b0:783:f743:6b2c with SMTP id a24-20020a05620a067800b00783f7436b2cmr1540452qkh.34.1706775570771; Thu, 01 Feb 2024 00:19:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706775570; cv=pass; d=google.com; s=arc-20160816; b=gr089r++9AviRTGY7OwhJuTGUaZ5uCC3z/00MXAwTcA5XepOAYZguBIvkih4uB6oRc y+uPR0eLH7K9pIyiuaLrkeW30yPueMS8bj+q7yoCHlPaw1sjaE9aQIgldPjPnw2BWdYW cu52niRM+LvpGFKDnrZeADG9XpP+xbSKHINhw/1vOCSQJxke2BNrYTX/yHJD+mMqCBtR yuN2rROA/zsqq+ckMAZ0fqR5Z+CSsv0waOx+IVU+n8jNl2kWEPDKRPnY2X+HhDSbPT7z 8bUb3yzMoF9FgmeDuHouljLWFFPcP3WVxvw/XLC4XO2PVcz1TYHe/IXZIK68sEcIrKI4 2kng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=cFI5dVucRdVTbeql8T1bAFgclvq+0WY1kjSsHUwH7Zs=; fh=SobYj0cbbNpJKk7XSxlf9xLjVwmu53vSuHWC8XF40Wo=; b=XXwzsOSREe2nhvfR5lVksivYt2Aw7m9XHv2a1p6GUwbngTO/la/42JRAD6u593gAQq HLrwf730Wk3sP6TvzKfm9AlhmtMSTZ5RYfFYUB39rDRB7L8+OLGHDc7vY1Z0KXO6RRsO 5vU4nWPkp3YwfpV9qL/apTPugknO5MRI9v4gfBnMRHq7zlIzaIgDgbfUXSjXlB0uTrc1 64ZgvSufUX3OQvI3aa67HX7lvJAy1klQQEE4WXa3P5HIJW6nvBuK88BCatk05jfa+7Wc KW4gNCwGejLVq9sp1W5pO1PVMxIC+poQ568AKLOE2QgK0egtOPTtuUTMiAZ9TAO7oDn9 0HBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=N5rMzeja; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47767-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47767-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCUK4QSxxvuU3mG2eVPDrZdAU6zPO+Hfz8lZqyUawtrG/jpTuga3wzkX4Ll8vmMu52E+3GqUOCzvWJqZpRQF9+xL9HFgCw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u11-20020a05620a120b00b00783d9e90923si12888714qkj.519.2024.02.01.00.19.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 00:19:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47767-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=N5rMzeja; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47767-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47767-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8E7AF1C22F86 for ; Thu, 1 Feb 2024 08:19:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0758C15AACB; Thu, 1 Feb 2024 08:18:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="N5rMzeja" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43F4C43AC0 for ; Thu, 1 Feb 2024 08:18:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706775526; cv=none; b=kqT0mgF05FWK+6don2oZEbD3fuseLy0dts3QcgRP6aWNNUinLCFEksXFtgShHa4IapsmTZjU59rzSCZoPYcxs9nRJQaamcN3tfIkLtiBUrTdfvKQDWD7hjy6njI7OL0zZQSD1yVWBR0SpUJP42gj3uuNozIH2rcQlVlIZJE5r4Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706775526; c=relaxed/simple; bh=lYzIATM6Ne/sGhUcvtQWKGAMfEC3nM6zrkVczqOJRKg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jlsY2r/RXPgvwNGdc5rnwqbcBuYH0dW97fqrgV8ggBMe8beJouIjV3yL6PzR/fIvaHYGkoIgFYl3p/IPJ3IgPh2LkXrDPx3SZBd3j01oHv+ToIVIuYANTy3qknqa3YfAyoauSwxM8EfN8/pRo8gkqRZhYUcVfkpdTBtezorG4pI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=N5rMzeja; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-55f0367b15fso794245a12.0 for ; Thu, 01 Feb 2024 00:18:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706775522; x=1707380322; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cFI5dVucRdVTbeql8T1bAFgclvq+0WY1kjSsHUwH7Zs=; b=N5rMzejadI61a7vlP5/lMZW8+B7QnNgSWChglo5o++4QUEcV4gk4bShRd3kmZioP5b TGnYtPdUT50tV7WApDy7fX6gfa/ni9AZz4JzTn0qUVg8C9l/HJgBAMUSF4FKuEFOwtT3 7qt5Bll8NSI9edmqdZSgJTp8r6FYUZRrMODiAOw59QEjgXZ7HU5kHPrK+R+1IMDeupWB 2YArcWBkgjdE1KTvq2BXVLObpPDCKvDZRnVZFbC+kOAuJyaG6543VZcwSztfLBZ/H4YC VFIlletAVc2jNWUO+4XIEGs4NP9en/qL7SHORxW3dw02JRN+0a7xzdD0SKjIPvoLE7nv Qnlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706775522; x=1707380322; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cFI5dVucRdVTbeql8T1bAFgclvq+0WY1kjSsHUwH7Zs=; b=Ap85dgSKNYMyw7KqnYU3Nf+GgsBjlo+Vm9mCIzvE1ZPu58UqqJAaI0/+Z4OHstRusy PPf9m7egyUCbdLGTQCJWzgxc0/NLrPk29LdjG22xKzUKba4o3C9TQChJsDP7pCDw5Nr2 PpGI03FKjQkkn3zEUN7kzu/FoZ6YyJeB9bgz6v7UVzjHiPjyG4RfYv8bo9etEtDW9N2F 4rANR9c7a+vWUHfYst7kYvAcr90TRoX2iexUMp3x4jt0dqIlTOeWSSXt1CKVJVICEjla HAHGjlAS3x11YvUgXaM6N+Ij+2CraMaIgjNfzHo5rKfLTWi0eEtW/52JUz4wMHurk/V1 6XLw== X-Gm-Message-State: AOJu0Yyd0mtnAPtPsMhy5U3uN38x9eZKglx7Ty86eZCHTpxruL1OuTI1 RIyvE77ReKFKegSfot9X0Id67RtQQGvaP0nqIHqs4zvEE7zumRoZ X-Received: by 2002:a17:906:5587:b0:a35:360f:ae69 with SMTP id y7-20020a170906558700b00a35360fae69mr2653121ejp.54.1706775522106; Thu, 01 Feb 2024 00:18:42 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCV/jyzmzFIxtk+8BSXnVPj2yPP6KtBpQhiZjvXEU/fOdRgbY6luRO/+S3YRVR4fUkldVjT8mOlOlTs/sn1Sghy6eOGphNbwQDyEf8gD5RjtgemRZraX17HJXnmtToT0Zo+GagV3vzM1whHn+Ke3Mp2qgxHex2Q8wUV8aWAvvt6TpjWbBUs= Received: from localhost.localdomain (ip-77-25-34-59.web.vodafone.de. [77.25.34.59]) by smtp.gmail.com with ESMTPSA id p7-20020a170906784700b00a310f2b4b91sm6954069ejm.48.2024.02.01.00.18.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 00:18:41 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: philipp.g.hortmann@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 1/3] staging: rtl8192e: remove braces from single statement blocks Date: Thu, 1 Feb 2024 09:18:22 +0100 Message-ID: <20240201081824.6998-2-straube.linux@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240201081824.6998-1-straube.linux@gmail.com> References: <20240201081824.6998-1-straube.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789683900816209277 X-GMAIL-MSGID: 1789683900816209277 Remove braces from single statement blocks to clear some checkpatch warnings. WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Michael Straube --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 5 ++--- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 +-- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c index 9b9d95ba06df..080fe9c4585e 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -693,11 +693,10 @@ void rtl92e_link_change(struct net_device *dev) u32 reg; reg = rtl92e_readl(dev, RCR); - if (priv->rtllib->link_state == MAC80211_LINKED) { + if (priv->rtllib->link_state == MAC80211_LINKED) priv->receive_config = reg |= RCR_CBSSID; - } else { + else priv->receive_config = reg &= ~RCR_CBSSID; - } rtl92e_writel(dev, RCR, reg); } diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 32acba4ce3f7..9b528cf4dbca 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -964,9 +964,8 @@ static void _rtl92e_watchdog_wq_cb(void *data) MAC80211_NOLINK) && (ieee->rf_power_state == rf_on) && !ieee->is_set_key && (!ieee->proto_stoppping) && !ieee->wx_set_enc) { - if (ieee->pwr_save_ctrl.ReturnPoint == IPS_CALLBACK_NONE) { + if (ieee->pwr_save_ctrl.ReturnPoint == IPS_CALLBACK_NONE) rtl92e_ips_enter(dev); - } } } if ((ieee->link_state == MAC80211_LINKED) && (ieee->iw_mode == IW_MODE_INFRA)) { diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index 6d0912f90198..49b882c363bf 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -480,9 +480,9 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee) } ht_info->current_mpdu_density = pPeerHTCap->MPDUDensity; - if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K) { + if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K) ht_info->current_ampdu_enable = false; - } + ht_info->cur_rx_reorder_enable = 1; if (pPeerHTCap->MCS[0] == 0) From patchwork Thu Feb 1 08:18:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 195197 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp26dyb; Thu, 1 Feb 2024 00:19:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPEXQ/DnjX529yuZZtFw5vphprcQwa90DF9R6VL/OKWjGfZLzdZnltZLAQATv/+ktXICbV X-Received: by 2002:aa7:d58b:0:b0:55f:4799:cbbb with SMTP id r11-20020aa7d58b000000b0055f4799cbbbmr946138edq.41.1706775576182; Thu, 01 Feb 2024 00:19:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706775576; cv=pass; d=google.com; s=arc-20160816; b=epm4vgiB6NQPyCuaoGPHLv2y16QepV4R7FAJH5E18x1jECdt6LzFk5dWvgPabbfBPa 8KUWeyShlMX/q8/MAsZw1iav175saCnfo8DmT8EIC0JVjG4uWgupbns2F35hn3VokzdP FEFW3eqhakowfD++HxLtTF1PkBASZPckcSfSzznVrwqsnu7kmwyyICFR/MJbk5r1zuUw cTuy3nPSiWWnk8LdevIekkUJpQWpXsseDhpkEsE6nQCn+1O/NDXpzyN70uUDUVLgV/QB serCZZzSHpf6p0b/nYcv9kk3JWsbCa56F0UJPIym2pCGrW4SLzl5nF2Q9xi3u29cemzs P03g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pyVY24lOJtDz67jI+ohD8RRv2jZxEpdf9sHHgY5otn8=; fh=TJfp7QqI+7dKrTqZcuOUGn78IrTLyG5E2JxR9QiktiU=; b=0t6amP2YWYZAzgP16UjRew4VTLuLfuKk11DIIfR1AKvIlAY7kApy2JtzxgsOjwmPXf +LsPtzgd+1zBmOh19ORAumMI8vc44WRxplZFxzTgpcUFTCqe3Gi6OIGTgHwXlC4SyLRg zN7N5SRoucNFihWPogtJAPMmsPzz/zaSBospX232c1KprfJ1dVUcQC1Uc6qSum/Din5m 68u9UUm1jiSqSC5JDAacLaqJZUY7xciO+1wmCNX9GyD2oZlAG51+l/IM5yoTphku/Cr1 VsG4BRqAk6zZHazsmak18yaTURZC3WMAp1u2BqHqlW3GV6btFDZoUFN0hs7UkOqVm9s6 3yww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="KhfT1h/x"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47769-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47769-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCXtctohoxECELTNi3PNhlzp+Q0SmvNaJU0XyQliwclLQoSuAS+gUfShBhO1whogrFYqf8G8ABFc3MO+CRsoW5ZCkapihA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cn3-20020a0564020ca300b0055f85fc145bsi1402895edb.388.2024.02.01.00.19.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 00:19:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47769-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="KhfT1h/x"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47769-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47769-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id A131F1F29BB0 for ; Thu, 1 Feb 2024 08:19:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EF1215AAD6; Thu, 1 Feb 2024 08:18:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KhfT1h/x" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4B7A1586FA for ; Thu, 1 Feb 2024 08:18:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706775526; cv=none; b=LwsA5+6KH3HX5LbGILOYyRcyU4xeEbrHs1M3fYo/0p0BKyQkGrVoqOD9+/I0NqNax4f9lUdclEjNnoc2DVb7pyA9/cOR+TQJw8sohH2sZyBXgN+ohjS1y8lfwkmiq//rC7z/Q0SlvDJyGg6l/5pEsKZ81AMjJ3poxP1GiC6fsCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706775526; c=relaxed/simple; bh=POYD2X8Sn0xdUyEMVmcSASb32r6ux72G3OFg1ARJVgM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BY1M50Pxn4I+s8SweSvri6WAMK1VPKQRtmK/tcchVN701vAeqLDwLdn8t7Hpu+hHkeOiD2G/ny5YQarUVlsxk/+sSELYao76Al5zRe7aXzMDjvEfM+Aw77pUOdMV7NKmEk8dn30xujKtM1fc9y8QJ0eJjlmwzWrIhRBICuxeJIY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KhfT1h/x; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a357cba4a32so74757066b.2 for ; Thu, 01 Feb 2024 00:18:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706775523; x=1707380323; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pyVY24lOJtDz67jI+ohD8RRv2jZxEpdf9sHHgY5otn8=; b=KhfT1h/x/YLBoKfELnjsordM00z8eJDixKNGO5gIEOeqNkimhe4PpJOMLRkNBF7A7v RN5pxI5uAl7LGcR54XEtzzWpyKKmfqLouv9gVlI04aURsH3HAGd1jEbkvcLqE9g46pVD ZeElf5H4GJJhCKdU7j7cvFYInjUHQ2fO8XcGNlErocwfPMHg91+mAeU/I4qVivpf5qbg Yh4D9oMmoEq0VquvZfvIjuv/vfelXLfV+pbYT4iSCGavTtBhDgxgIoreKglbM9ZAmdT6 MzPyJEmpBra+CXVfl8I/fE+XdYSYK2kOXpVH9Ltfrur5zUCRPanuvAVHKyRv07X9APUs ynTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706775523; x=1707380323; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pyVY24lOJtDz67jI+ohD8RRv2jZxEpdf9sHHgY5otn8=; b=iWbXYSiumeedRGLwic3fUlqMFDqt74UzrLkIBBVdsvWlamUogIR9tSvwTz6YgM/aRg vcz7sf1ear1Z2LITJGSdlU+5Jy4lhQshhwknMbhjfJ8ZisHq06dUPtDOs+2mfxTRpEvH NZ7z3tcwnbOMz/beQ/MBnLk9GcrOjRcrX9yKcdtV/t+lx8jal6N8smxpcZIgSrlSaRVH Lie3dLGQd+Dr/4HSmg4eTr/9MGbJuMDNOiwgHVCJruWZsdHyuVguET0dOloitUR76Ptr mIxImLkMsDdIfjAm69iI6y47ynxAxir8/EEUZRa5sopP8Ug1K50i0N/rHFPwN6h1SHOo rtkw== X-Gm-Message-State: AOJu0YwapROyS5OH68Wk0FrtXPVPxWrNG7Q1F8qow4Axi37w5uWfCzls 8f7nEvRY0mEEwhg8nn19T3WIfskq65KgEEcAG1/catYWgHg4dfj8 X-Received: by 2002:a17:906:1397:b0:a36:9041:cdc4 with SMTP id f23-20020a170906139700b00a369041cdc4mr1137713ejc.53.1706775522949; Thu, 01 Feb 2024 00:18:42 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWM4VA2pCElicVrJtpPs1pnoNTgPQ4E9PPC66Ds1TCXsuMzFnfBW7I5W/VfrnKCr/fFzjGXz+XEG9MqPuZZSL1mC1C8rFgPqcYNqA5aW7pxP9MFnesiFRfG4qoM0pJ9ht3roxZbM29i4vUkR2B6acUHqapBt3S+zkqtWAzCoOJ5y8gGt1I= Received: from localhost.localdomain (ip-77-25-34-59.web.vodafone.de. [77.25.34.59]) by smtp.gmail.com with ESMTPSA id p7-20020a170906784700b00a310f2b4b91sm6954069ejm.48.2024.02.01.00.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 00:18:42 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: philipp.g.hortmann@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 3/3] staging: rtl8192e: initialize variables at declaration Date: Thu, 1 Feb 2024 09:18:24 +0100 Message-ID: <20240201081824.6998-4-straube.linux@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240201081824.6998-1-straube.linux@gmail.com> References: <20240201081824.6998-1-straube.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789683906567966925 X-GMAIL-MSGID: 1789683906567966925 Initialize two variables at declaration instead of first declare and then initialize them. This saves a line of code and clears a checkpatch warning. WARNING: Missing a blank line after declarations Signed-off-by: Michael Straube --- drivers/staging/rtl8192e/rtllib_rx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index f777febcfe3b..f94fdf27214c 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -943,10 +943,9 @@ static void rtllib_rx_extract_addr(struct rtllib_device *ieee, static int rtllib_rx_data_filter(struct rtllib_device *ieee, struct ieee80211_hdr *hdr, u8 *dst, u8 *src, u8 *bssid, u8 *addr2) { - u8 type, stype; u16 fc = le16_to_cpu(hdr->frame_control); - type = WLAN_FC_GET_TYPE(fc); - stype = WLAN_FC_GET_STYPE(fc); + u8 type = WLAN_FC_GET_TYPE(fc); + u8 stype = WLAN_FC_GET_STYPE(fc); /* Filter frames from different BSS */ if (ieee80211_has_a4(hdr->frame_control) &&