Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp388738lqp; Wed, 12 Jun 2024 05:00:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfR8C65NFYzsdBRWaIrM0O4/qevJKM+5xEO7noWEwC+zJzDaZxpz4snBwKEVjEX0UZ7hKbpJ9ckX49azJNrnceWFFmSP5MBpd2CZadZA== X-Google-Smtp-Source: AGHT+IEy5leppDR4LxWCxhmoBVnyrDbM1NBMjEJ8XzxMVKMDtW05ePTLVKKzzoczOwYese1R6sCE X-Received: by 2002:a05:620a:4155:b0:78f:a08:64fc with SMTP id af79cd13be357-797f6011308mr149967885a.30.1718193657331; Wed, 12 Jun 2024 05:00:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718193657; cv=pass; d=google.com; s=arc-20160816; b=ygL3BeI4yM3wMRTknmjKYWOtdTk5aFqzM6biYpPgiAb5XFkUCOZOZcBxa1IjAooIAW ZdO2zyrmZCKY1NjiK7BvS0thbKavqCS8QKG3Gq/vMwZ9oJl9ssEaIOcRAoFGdNL4d/s7 6pgHdEkATe4tEx0RpNRrTG5+HPKkw/TDdleSuYvXTVKk2a+Tn0Ir0Lur7OhZHcxrDC2k KE2c88r8ZsZOyssiI7HucmigbE+dZh8SXvO6iaQnp0HB+gtXdkeeS/8Huhn1IAeF6HBj jZJpsyHVlkkkSPdCBKirdX2pA3whl5/ojwQXDydZx5AebMSUF13Nmauebzi9SPJXsN8z DuNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=6Kxx7LAtcfj++ZICaDyJYgH4TTGM3yxrKkoNbO6oWn8=; fh=ymC/a1v7vwr63kW3yE+CkHnSPwXou6HZOdxACGIibhw=; b=M1OfgnQkXvZi7LvK9RMmO0Yx9i9HRCmXT2jds9oTMQXIYBJQhod+SKqHrI8F6j6GBf qwbjKPR4kcciMMFcoWnlSwuSd5J8Nilfxp9B+5ZT/fmtJtI84BhAXc95lTA5sfdfQJwj bo7PEavzK99XPqCxKShK6+AUFtTwtEx2gRz5aOqSih13juyuK6mkVOlMIKWf0xL6YzJ3 cB3WpuseQwP/pSvWT2bmsOfEu+H2iGWwRjlNyyuLfKvX8d3MiKZ54wZo10Cf2pknsirc dBvgD8j7Hx9Uj0064UYXxLtgHi8THMNdckXx4JqqjoEgQxCcQ6USbmQFffHymMmIYoRX /Ujg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oXWplOsq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8855-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-795504aa0efsi1222724285a.79.2024.06.12.05.00.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 05:00:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8855-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oXWplOsq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8855-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0176C1C2040F for ; Wed, 12 Jun 2024 12:00:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B27716F27D; Wed, 12 Jun 2024 12:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oXWplOsq" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1BBE05B5B6; Wed, 12 Jun 2024 12:00:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193650; cv=none; b=KWGT2oXBjN1LBsEM/P5iVKM4twFabdy7vYyQtGPAaHjC1LDlfmYkHhW5KmNpC03StkayyOIKUetXSOvqHTnq0UOgQnUnRPASRrKNyWR3SMWkmdeTT6eLPaUxzBtd2DJesKBhwDFRo0lHZoGWyeVfW0Uo0tMK38qk98seLuvPXdo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193650; c=relaxed/simple; bh=n07DsxpF09u9uRBGe0+vElVCf39YcKw1xJ60iXRcKzg=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=LDHx1BUY+VCfoBQnAkRfS+Q2GbMvCRizOynoyQUTw1T7yBnGh1imJz4bAkPh+E51+4nut56TxsPAv+d+lG9oJXuMe3I3e+A2tUUR1V9OCbarzTX9+qnP/ksNdBaMtTzM8cU409reLLf1aOrfc6kQ9KtXF/3dcvrThHgPn7CTkOg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oXWplOsq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E93BFC3277B; Wed, 12 Jun 2024 12:00:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718193649; bh=n07DsxpF09u9uRBGe0+vElVCf39YcKw1xJ60iXRcKzg=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=oXWplOsq4nnAtuLBBD+pAoPfNo9LptulGP0gr4nvRfkbtxPnYsxqr3QnMyNnPfYH6 kM6B6mF0kd1Ds3lXuu2aUqqdtb2Kf38jBF1DBUwPw3CjvcAU6TbpOfjINQEFLou32C gNO36MRx2EzUGOJIr1iRM4rmsewkGDoLFBIRqLrfA6o7BBfLjPGcu1/Xs+KG6d1IOK SaWDYf3mFcw/dBJ2LvrZiUKXKqd+PR93+0BQK7042tV8lwenoBsaUewEsHFnSGXvYO Z9Uz4PZkJTxFTCe4Ya9GSvubI3jvnXrYn/a7krp8m7cfs0ZimCQ+kJYlNXoJ8vWeOV fN1MYBnBNUaIg== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [1/2] wifi: at76c50x: use sizeof(*pointer) instead of sizeof(type) From: Kalle Valo In-Reply-To: References: To: Erick Archer Cc: Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Kees Cook , "Gustavo A. R. Silva" , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Greg Kroah-Hartman , Johannes Berg , Alan Stern , Erick Archer , linux-wireless@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, llvm@lists.linux.dev User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171819364392.3856519.7235762996052092002.kvalo@kernel.org> Date: Wed, 12 Jun 2024 12:00:45 +0000 (UTC) Erick Archer wrote: > It is preferred to use sizeof(*pointer) instead of sizeof(type) > due to the type of the variable can change and one needs not > change the former (unlike the latter). This patch has no effect > on runtime behavior. > > At the same time remove some redundant NULL initializations. > > Signed-off-by: Erick Archer 2 patches applied to wireless-next.git, thanks. aea9165ccfd1 wifi: at76c50x: use sizeof(*pointer) instead of sizeof(type) bbef1d006cb1 wifi: at76c50x: prefer struct_size over open coded arithmetic -- https://patchwork.kernel.org/project/linux-wireless/patch/AS8PR02MB7237C784C14DBC943CB719F88BFE2@AS8PR02MB7237.eurprd02.prod.outlook.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches