Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1355294lql; Tue, 12 Mar 2024 14:52:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9/NL1XwCZYQlbUFrJLUOKfFFODQLtRjc1TZd/lrJvvn3BjuNqAEbF+MIw2O4gUWvifHCgv9yxGaLBKNy6X8r0229UmOU34ytGODnf8Q== X-Google-Smtp-Source: AGHT+IFQH47hU+EAi2jpejmYQtkiC7t1XhVbfx5ZcWAM6dOXDYxmeryDaRSrnqQPfpnYKPIzFRA5 X-Received: by 2002:a17:906:c7d0:b0:a46:1f91:7078 with SMTP id dc16-20020a170906c7d000b00a461f917078mr631879ejb.20.1710280345438; Tue, 12 Mar 2024 14:52:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710280345; cv=pass; d=google.com; s=arc-20160816; b=ymZ5CJzwmw5LrY7FBpeLgApNiXT2moSGwe8htLSiJCjnz5F4gCcLAVX69QSVGecPDp yeDhGrgCXtBxrpuw1ZIagcw3lYbU/6I4Nn3MmSg18C1o3jODlKQp3r6Wsl3X1ur8sgVg 2t1X+REc1b+C1NClj8IgHQRAId/33PsLNd/N/b3DPjSl+5m/BI0Jphw4VQdGRjcKeBVW GSJQxOV9g7364voE3Qhn4Ydt9MHl95ab1HyvkG1EP4DfDyz0UUY1YZDyZpDtdDSFU3Nh pXfhw8nAssJXjhb9/DLJalaTu8AMrJ4csYYsGucdqNpbWlzDOnwEfvPN/PrTY3r3fSqY JDIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=zjkimfvEnH+8h+KzI9S405xYFJIlma0xDcckDJKGofU=; fh=l2urHS5XAmXJNNxnPDBZoxdvVDx8h+ViCMeUGXIijS4=; b=OsYN8Y2qokOa9SnJfdy1GJ0AphEl1JyJfYnFzfo7bkMDhmmBObZkPG9BZPB5uQy4dB qR5pXXYMB0ar34Wzk6IlqeaIZ30sQb6iUWvmUPQ6oRfvg7BVXhniskJDfk7iwmkNnqEa i05BSbwXuEwsGyL7hFy+s+jIlQ71Gd+omCKkvGchaa+jgzHzX9blR+I4m1OgUVcYMPGS 15T/fIXBPXePGj8ZoB/m1/40PItAAS+LvZ3VvT0nqmTISEdV3jDM5FNWuy0LnNX2wukP XiunLvytllMSdX5DQ++JAWh7mPb+MTC276i+oP2y6BuszGvt9DZmGbDxcE8DTwnWHUgJ SPBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=qdWLlB6b; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-100838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t24-20020a17090616d800b00a45f5afcf24si3758575ejd.906.2024.03.12.14.52.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 14:52:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=qdWLlB6b; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-100838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr 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 2E4951F21C6E for ; Tue, 12 Mar 2024 21:52:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C568143C7B; Tue, 12 Mar 2024 21:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="qdWLlB6b" Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (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 6A1E2143C6E for ; Tue, 12 Mar 2024 21:52:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.134.164.83 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710280325; cv=none; b=LUGSCTtfBgHIrZcRGgxWs4TX9D56e+gNuH0elRrZuH5+J7LxcAuOAY8093kPmQt9GeWci3BWE2shy443SAmNtI+yWwENc+Ked04TwlGTqZ/+luVM0gzqDBlZ4zb5gqk71Un1tD+HWXhF+82UDWTPg345xVcVdgBaDPnd4oAnNQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710280325; c=relaxed/simple; bh=c25YjC2JUauATlLLXLNhbWOGSqRPC7E+MI4ezwvcdy0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=m5VDajZ32tCHRIWqpP5ERWvdh6USxSTBAGtmmFNr2FrmAHgjg99AqkT5NrS5YAw4TxEyXGABR1N6KgG+HSmdEdIyLVjzTr6vCVAsXVJb34n5FRG/7cAwi+npwY0khigQ4iQFzGSqWrKeopN3c0d/Bjgu5e+hu36M+jcKKqKZAkI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr; spf=pass smtp.mailfrom=inria.fr; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b=qdWLlB6b; arc=none smtp.client-ip=192.134.164.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=zjkimfvEnH+8h+KzI9S405xYFJIlma0xDcckDJKGofU=; b=qdWLlB6bJ3c/HeeTsjS1dBAwUtRQT+HCqUvyqO9P0xO9HxQifStQxjkg IVw2qqjIpcw9xRAQrgAauflAB8Ttud2sTLZOb7E3T/QC8xAYQRlx1Dqba PE6tE5ZO4WpAFoKgJMevYpT+nkVNnpgLJZG9xcavK+ImpWf8nyJDJdejh A=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.07,119,1708383600"; d="scan'208";a="156339789" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2024 22:52:00 +0100 Date: Tue, 12 Mar 2024 22:52:00 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Ayush Tiwari cc: outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, florian.c.schilhabel@googlemail.com, Larry.Finger@lwfinger.net Subject: Re: [PATCH] staging: rtl8712: removing redundant paranthesis chk_fwhdr In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) 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 On Wed, 13 Mar 2024, Ayush Tiwari wrote: > Removing redundant parentheses in 'if ((pfwhdr->signature != 0x8712) && (pfwhdr->signature != 0x8192))' in static u8 chk_fwhdr(struct fw_hdr *pfwhdr, u32 ulfilelength). This will ensure adherence to coding style guidelines The log message should be limited to 70 characters per line. > > Signed-off-by: Ayush Tiwari > --- > drivers/staging/rtl8712/hal_init.c | 2 +- > key.pem | 28 ++++++++++++++++++++++++++++ > staging | 1 + > 3 files changed, 30 insertions(+), 1 deletion(-) > create mode 100644 key.pem > create mode 120000 staging > > 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 ulfilelength) > u32 fwhdrsz, fw_sz; > > /* check signature */ > - if ((pfwhdr->signature != 0x8712) && (pfwhdr->signature != 0x8192)) > + if (pfwhdr->signature != 0x8712 && pfwhdr->signature != 0x8192) Actually, the response to another proposed patch was that it was preferred to keep such parentheses, regardless of the ceckpatch warning. > return _FAIL; > /* check fw_priv_sze & sizeof(struct fw_priv) */ > if (pfwhdr->fw_priv_sz != sizeof(struct fw_priv)) > diff --git a/key.pem b/key.pem > new file mode 100644 > index 000000000000..ef912436e976 > --- /dev/null > +++ b/key.pem I don't think that this is supposed to be part of the patch? julia > @@ -0,0 +1,28 @@ > +-----BEG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lNbZieNNrnOctFCnGPlUSmte4Ubd1QEplUkbYkfvh5XKIklAfLsQPf17FQr/ > +ZAE/2YIOdwKBgGfXCQ0DdZ9RFySdRmoFX5icAZEKxVl5FpA/ZSBK5LLqJonntP8Y > +F71GxNN56Q9WpWeEyvyGFzTTZlj9FmKxx6r5HXm/W8KtuthM8E1qiplHgh9L7/5C > +j50QHBz0C0Q5uvwpMw6fNhv7G7VWiAek34PI1r0Y5hzVji1C+9I8itI5AoGAYGsU > +at/UmyenBhO4/ZrTHkhIYX4sdR6SlZ9XBXPqZkKYXyn0mD3ZMrOqsEKlSnA4EDfj > +kzXok9VoZ7XdT8HBqGjcGmpeAbomp2KFE2hYwZ6kPCouJj0F5EOLxVQNuh74XDnU > +LgwuICxXUwXF2aZg/immkVmx7inskDD3o9L9vBUCgYBhCpayQcy9hswdDVICOEst > +U9VXwVAbwfdmPTLiKacRQdw44zhBcsBB0wi1dszvGvSlAlB+ChFM6MxALEdbvTln > +Jxwsyxx9KXuoryhcTlHQikBOYxmrqPAhdrPh8H2tdiv2yX35x9g7E/XkRZZxMfkL > +H7x8vakFgGNcX2NITZBM4Q== > +-----END PRIVATE KEY----- > 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 > -- > 2.40.1 > > >