Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1699381lql; Wed, 13 Mar 2024 06:04:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXG1UlqncHCoKM3gbrGr1CleuMHXUicW7XIuUQmLCres9hi3qzNdzzFk7VpAqw5MhirpsC16wjI4xeUoYmaO6FuBZXw/tK37ciBc5uE6g== X-Google-Smtp-Source: AGHT+IG54ogOqVOzRSjqAkUCI5swKwjBgDR2R7CV6IezKOKBGs73FNkUhrnkEzVqVs5ZeaO9b9GH X-Received: by 2002:a05:6e02:1c03:b0:365:feff:f512 with SMTP id l3-20020a056e021c0300b00365fefff512mr14227340ilh.20.1710335073205; Wed, 13 Mar 2024 06:04:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710335073; cv=pass; d=google.com; s=arc-20160816; b=UqhkCI63cK1g5nnVimATn9FSyw2SZEn94eaz65GqSfKhjmbPMO5Ti4Ky3AH9ugbIl8 v3lN3UwGVti52w9jTtvXNy5hwqoGqj0asTGOW0BQ/XELvbSGMdsKCCPNttdPQw836Jzm okLJIYzcuHozORi7cWWwVJf6INQPXZF8YNqhqNvFamvyC2W+Dyc5kwlsWdrwzy1STuB8 HRAsEWncjsglTvPD9RMRfRWEGb04wQvhb6xCKm0CZVtxmCtKaumuUHtilDIcpsaOZ4NI /PvHAplsI8DuGOqewoSTWsVfUUt3uP2vDnX5p+NdanZilHsQkXsvxv9v3pZA9N+KJxZn +iCQ== 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:to :from:date:dkim-signature; bh=9uHnZXjrHdOB/gJ/MSqj+aJ97zQ05u9C0OKdlbMO9ak=; fh=ZCFoRE1cq7Sh6Sh+EoxQhrHrQTVwVjXBBVMLIaoaAf4=; b=HGnMtzWq+OqrRG+UKtdKwZDuKf+bF5XLqz7v/YL8M6IRUYYS09xhMTsS7u1chyiLNy sHJvMBPsDQ1sp37k+ApuNOftmRAH1OVgkZkktm4N5GUd8w+HXpIvN5EEh0+vcspiENQC yeIPnV1/UsypVb4NCgXQeH3DonI4ltC9sQhkZ9BGGceT/1oCu2gLASlDBGZBkdxkrGbT i/uXGDlB+Rx5dhkseW6OV9Tf+pFcH1gEL1LJMK/hn2k4OgcqHtSV/aBcclhQhHEFaXbe uX6q2kkvpGuptelPJMhby2QQF+JgbdeLKutfi+xpuB0Dn97wHCHtLW47b3XfokdPq/sz gpPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XrtXWKvP; 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-101506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l24-20020a02a898000000b00470f7ee117csi3618275jam.98.2024.03.13.06.04.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:04:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101506-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=@gmail.com header.s=20230601 header.b=XrtXWKvP; 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-101506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101506-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7A53128523A for ; Wed, 13 Mar 2024 13:02:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D72823FB88; Wed, 13 Mar 2024 13:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XrtXWKvP" Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.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 88E723E487 for ; Wed, 13 Mar 2024 13:02:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334968; cv=none; b=NG/RcJvJuowP1j/XR0Zxd/MhliqcC6lPIY0gME60pgf5Db1liRfKloYtv7Q1wEOPbRttzDlofbdXreQ/qEjaMxiu89Y7BQk3uMkTVa6WCvqGHk2clMXTwyyRxA3OG5Nlykk/1aMwyam2jLa/TQGc9ymtvG8eDG2WlC0FqUuvmJM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710334968; c=relaxed/simple; bh=5+6a6BE6Dzik/1mcPGXs78Go5F8m8w8Zi3fZK+98t1s=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YK4fKXF7IMYfdCxAas50SbA48HyWn8h37IDLHxv+IFdN23NRpCBFyopYe0rS/eaLwqvNAI38OurMcOWra0HtrxUKZvIPPoH8pjsSJbDzgokZ/2xL3JnAbGBkAJBZ8oYCXYsUPg+0dU7OsCav4N/nnQHhPSZ38YAC4YpG3HPdfqs= 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=XrtXWKvP; arc=none smtp.client-ip=209.85.216.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-pj1-f51.google.com with SMTP id 98e67ed59e1d1-29bb5bec0e4so3773939a91.1 for ; Wed, 13 Mar 2024 06:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710334967; x=1710939767; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=9uHnZXjrHdOB/gJ/MSqj+aJ97zQ05u9C0OKdlbMO9ak=; b=XrtXWKvP/Sh+1D4Sufil8np4OgHxF/tFpczHhVNmd084PbOsi6j+43M2Sk/Uqrq8PI pd2UmVro4dgMDjZJyhnCp8JN3lFan1xeepmMVl650dvsV+SNjE+O6kynbItlcH1Kbq2j n+JzYC667a4/yJytA1rRxDyCFRO0wNklN5vsBl0Nn0mUlvg28ZdycFJM0z6Tlq6H5Ng/ rb9q3gL3lNLyL/vwRWlq4bTuVDEHU+/F15UDcueVg3J8mk7PuX6OJwOr4Al0CWf25dH/ mGX9XfFdsckDosV6fJJ6Q592aXL5Ut2gyDQHgaMn9XsgxDrBiZNG6JiOCrzvnr5tULDG hmMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710334967; x=1710939767; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9uHnZXjrHdOB/gJ/MSqj+aJ97zQ05u9C0OKdlbMO9ak=; b=NMOx6m7CyR7/RFwe+nDYgyZiRP3QQdYCLicSW58xFlj1AqaajghAcFU67FrUFTVmxD dkGei5WRSZH3CdGe+nr8Wq6EzWqdoaL1hJqQkNNb+SpYhQGV0kp8rErOQ3lYolwlk+4P w1RAWU0SXwp0MrHVF4wmfRrqCAX7S3ElRz66LZchGKn0VQS8WDZhbbkrItp39It3MBEB d8nNzVlo/b4XVtjf/NrBomsCGRtXJaFrTj6lMmSGjI7DQSHeDCQyjJS5NLelRWCoTbis 3fUrXkgZTGIIVMhoT8Gyh9DePgZLmp3CDfL5/luCDNZ84PYilhCW55oN3jVXV9SM1ztP 8VBw== X-Forwarded-Encrypted: i=1; AJvYcCVOYyUYCfNMM+EQtazBmGkOj6E7lnVYaWdgOu6hf+8SOdcFtCzyHWGYcWzrjmu0yEcoMWfIiHnL7CFvxqqHavjWKOexwjxQg8CvO0wq X-Gm-Message-State: AOJu0YxnnaCaAOiYFldDFWCSvIvb0btxEmBC++XG8XyZo55EUSiMpz64 d9HjmAuiZ4w1T94CWEf5uw76QyggIeQSmOFpQAa41VmJ25V5BpNU X-Received: by 2002:a17:90b:30c2:b0:29b:a957:f664 with SMTP id hi2-20020a17090b30c200b0029ba957f664mr9195362pjb.41.1710334958324; Wed, 13 Mar 2024 06:02:38 -0700 (PDT) Received: from archie.me ([103.124.138.155]) by smtp.gmail.com with ESMTPSA id g15-20020a17090a7d0f00b0029aac9c523fsm1307071pjl.47.2024.03.13.06.02.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:02:37 -0700 (PDT) Received: by archie.me (Postfix, from userid 1000) id 29C791848F178; Wed, 13 Mar 2024 20:02:34 +0700 (WIB) Date: Wed, 13 Mar 2024 20:02:34 +0700 From: Bagas Sanjaya To: Ayush Tiwari , Linux Outreachy , Linux Staging Drivers , Linux Kernel Mailing List , gregkh@linuxfoundation.org, florian.c.schilhabel@googlemail.com, Larry.Finger@lwfinger.net Subject: Re: [PATCH] staging: rtl8712: removing redundant paranthesis chk_fwhdr Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="olrniryj63XltpFO" Content-Disposition: inline In-Reply-To: --olrniryj63XltpFO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 13, 2024 at 02:54:39AM +0530, Ayush Tiwari wrote: > diff --git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712= /hal_init.c > index 1148075f0cd6..9f41b2c086ca 100644 > --- a/drivers/staging/rtl8712/hal_init.c > +++ b/drivers/staging/rtl8712/hal_init.c > @@ -138,7 +138,7 @@ static u8 chk_fwhdr(struct fw_hdr *pfwhdr, u32 ulfile= length) > u32 fwhdrsz, fw_sz; > =20 > /* check signature */ > - if ((pfwhdr->signature !=3D 0x8712) && (pfwhdr->signature !=3D 0x8192)) > + if (pfwhdr->signature !=3D 0x8712 && pfwhdr->signature !=3D 0x8192) > return _FAIL; > /* check fw_priv_sze & sizeof(struct fw_priv) */ > if (pfwhdr->fw_priv_sz !=3D sizeof(struct fw_priv)) Hi Ayush, As Julia has said earlier, keep the parentheses as is (hint: search lore.kernel.org for why Greg doesn't like fixing unnecessary parentheses). > diff --git a/key.pem b/key.pem > new file mode 100644 > index 000000000000..ef912436e976 > --- /dev/null > +++ b/key.pem > @@ -0,0 +1,28 @@ > +-----BEGIN PRIVATE KEY----- > +MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC8i/6L5h4wSbaP > +tn9whe9BfKa0jpiiy+F9L0fJEWGKqUqxMUL3D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LLqJonntP8Y > +F71GxNN56Q9WpWeEyvyGFzTTZlj9FmKxx6r5HXm/W8KtuthM8E1qiplHgh9L7/5C > +j50QHBz0C0Q5uvwpMw6fNhv7G7VWiAek34PI1r0Y5hzVji1C+9I8itI5AoGAYGsU > +at/UmyenBhO4/ZrTHkhIYX4sdR6SlZ9XBXPqZkKYXyn0mD3ZMrOqsEKlSnA4EDfj > +kzXok9VoZ7XdT8HBqGjcGmpeAbomp2KFE2hYwZ6kPCouJj0F5EOLxVQNuh74XDnU > +LgwuICxXUwXF2aZg/immkVmx7inskDD3o9L9vBUCgYBhCpayQcy9hswdDVICOEst > +U9VXwVAbwfdmPTLiKacRQdw44zhBcsBB0wi1dszvGvSlAlB+ChFM6MxALEdbvTln > +Jxwsyxx9KXuoryhcTlHQikBOYxmrqPAhdrPh8H2tdiv2yX35x9g7E/XkRZZxMfkL > +H7x8vakFgGNcX2NITZBM4Q=3D=3D > +-----END PRIVATE KEY----- Please don't leak (x509) private key. If so, generate new one instead. If you intend to sign your patch, you can use patatt (see [1] for usage), although you have to use a GPG keypair for that. > diff --git a/staging b/staging > new file mode 120000 > index 000000000000..ecd48e46fcb1 > --- /dev/null > +++ b/staging > @@ -0,0 +1 @@ > +/home/ayush/git/kernels/staging > \ No newline at end of file > --=20 > 2.40.1 >=20 What's the purpose of above file? I'm confused. Thanks. [1]: https://people.kernel.org/monsieuricon/end-to-end-patch-attestation-wi= th-patatt-and-b4 --=20 An old man doll... just what I always wanted! - Clara --olrniryj63XltpFO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZfGj5wAKCRD2uYlJVVFO o+cdAQDkmcNoU5/jUFGizeKREePa60FyiCloMKaWAtknbSvpOAEAz1Qf8s9FIdGQ pKy57HtDlfJ/ONGlBVjhn8A4bE/L4wY= =WaF9 -----END PGP SIGNATURE----- --olrniryj63XltpFO--