Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1164009rdb; Fri, 22 Dec 2023 18:00:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdNxHSmyvaNPw5RnvXQtAqnL2d4C7l14eQDu4EA/K5qZhAGSJNgOWLdSWTCNqZwQZr237F X-Received: by 2002:a05:6e02:1d13:b0:35d:61e2:16ed with SMTP id i19-20020a056e021d1300b0035d61e216edmr2815111ila.9.1703296800944; Fri, 22 Dec 2023 18:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703296800; cv=none; d=google.com; s=arc-20160816; b=GF6YY4bna1o48035SRcUyqGFNiCUqmtVDcBr8XM+C7F/RrqboV1tVC7GtvbNpCvrVZ 1wSg+tRt8E3nQQjQQE6GPvWibw1M716FQcYuhJ2M+66VXAobnobzaNmCVrO1UTGHoQDh ouMdm6om6IF4ODzH6aYyaNmTa2y/TtNOPLS/vWqAc4GaS33/wh7QNptM3ysiwKIFbWb7 LYV9S29PD9Y1Fnt6hhh5egnETkF3vdBseh+oITa8t1FBmQm8lQ0HbYfZsYAuqIJCurSf Np5+6Xi3V73z8ygipNp3VX0uW3nAqS2kJmSF8y+wsUbqKbV1If2RT7myknl8viOTsCV0 iz4w== ARC-Message-Signature: i=1; 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=OQy2sloRPBS+5sAQ/YWqlyAxRk9/nFXvBjKhePgocQQ=; fh=p32Pg0zBdFjDUOpUp1txX3SLnGswM8C/CMMa7TUpsLA=; b=eqgygKec2F8A6yKVDZJhM787y+KL6StA/W6pmX42NMreuSRLoEQicme9WCVl5TnYY+ QGAPPmxYo673CnF4k0CQcXCb6tNpDnrl/ANK8v2peF5ZoPbCetF+jQYrY2XO2trPr3t0 F2zRfrhqwUlyATpeYUgvvUvogBP0QC8X7ftHdTXbrAVQrH9gSjYklQ63lVlfEFA5XsaH M9FOsua8I0IBli15v3lJVL1KTlqYXBAToYU5RAngLKci60CWE9XAq0Pga+tcWxCT3AnA uGuJ7vGVtsSn755+yXJFfaVoRcvGZExQkBnAooHlioiOpi+e5GOmWcAdDlSAkiyIybwd phpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=mOiqZyJp; spf=pass (google.com: domain of linux-kernel+bounces-10184-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10184-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ja15-20020a170902efcf00b001cfc9894958si4126098plb.379.2023.12.22.18.00.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 18:00:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10184-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=@darkphysics.net header.s=google header.b=mOiqZyJp; spf=pass (google.com: domain of linux-kernel+bounces-10184-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10184-linux.lists.archive=gmail.com@vger.kernel.org" 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 6A7F4285507 for ; Sat, 23 Dec 2023 02:00:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 523DE1378; Sat, 23 Dec 2023 01:59:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="mOiqZyJp" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) (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 3C887803 for ; Sat, 23 Dec 2023 01:59:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkphysics.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=darkphysics.net Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-35fe994dab5so1562745ab.0 for ; Fri, 22 Dec 2023 17:59:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1703296786; x=1703901586; 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=OQy2sloRPBS+5sAQ/YWqlyAxRk9/nFXvBjKhePgocQQ=; b=mOiqZyJpCVTdrW1CbsE59qgub93tPbglc8ZNwMrRHAexZaDKp9zOPVSuyAsxPuokrM tGbcQdsBQmT2Gfs0ummbKIlyx1wu6Z9xNj0nsD8NgGP0U63gCqJ6FchonqmVwH+D3Lff sT+Pw62ieoxmARND4xcnCv24owihIsLE+ZVJ2m7yKXAIz7nWmYrGSKNYM+4iEtEgqnbZ HUN93O1J/76EClXG+GdBG+BisAeN4SEZU3AYpJfVi64reEIiH95pwu4bsUqPzkF6MtUn rkgvUG0zVmWPaBRkIKBAPznZyF7LLhoGMNRo1IXjOEWhEC10wmA8aY69VZ8yDHTUssDv HSNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703296786; x=1703901586; 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=OQy2sloRPBS+5sAQ/YWqlyAxRk9/nFXvBjKhePgocQQ=; b=iGbp88U3wkLzdKVSd8dEtvrLLN9Lp8ik2Bw6w1XRVJp75JtL/5Th7pPyjoQImPXqHe nZt8FxBlTTNjm88lluwM7c3hGviOaLjAlqSNA1uFo09fyoVlxO/36TB/U+Pzb2Z9Q61L 0QcurscmzI8hccmUw2cUA5RFf7DxcguJ8OkU/r3JvfCDEmnl8QMGcjmsSV5VYx+ES6pX lSfkPZZeiWbeMJ8Ws5kkK114u81gH2+Q0NbRhvHXtsWL8Cdd5cAEdzovyJWR0th7D6lB WI5xysH93z3JHiZHxRReu3zFOo+w+a6/GUC2sqv5EI0YYTek1Jo2C3ezKJUJO1SSBDxA dPEw== X-Gm-Message-State: AOJu0YwpaRRl33xBPmKcMGFfl880e6plqz2xCh9gSlM/pNpgumJyJ5JE F4SCsGnUl9GYZcA4bASprWJx1mAEIMciqw== X-Received: by 2002:a92:cda9:0:b0:35d:6227:4f03 with SMTP id g9-20020a92cda9000000b0035d62274f03mr2780374ild.7.1703296786409; Fri, 22 Dec 2023 17:59:46 -0800 (PST) Received: from oatmeal.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id kg15-20020a170903060f00b001d3edef115dsm4106546plb.20.2023.12.22.17.59.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 17:59:45 -0800 (PST) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH 01/20] Staging: rtl8192e: Remove unnecessary braces from MgntQuery_MgntFrameTxRate() Date: Fri, 22 Dec 2023 17:59:23 -0800 Message-Id: <20231223015942.418263-2-tdavies@darkphysics.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231223015942.418263-1-tdavies@darkphysics.net> References: <20231223015942.418263-1-tdavies@darkphysics.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove braces from if statement to fix checkpatch WARNING: 'braces {} are not necessary for single statement blocks' Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtllib_softmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index 9c94c5ceccd5..2c46906be38f 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -172,9 +172,8 @@ static u8 MgntQuery_MgntFrameTxRate(struct rtllib_device *ieee) else rate = ieee->basic_rate & 0x7f; - if (rate == 0) { + if (rate == 0) rate = 0x02; - } return rate; } -- 2.39.2