Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp83282lqq; Wed, 12 Jun 2024 17:55:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJpdWNs9RTGgRQRhL4mdkES/M0VyAKX0NySDIPedYmfCoMlZZNm2pZ7YhhaD4Dj3Hb69sKjGeiED4aNoTGcOx9Z1GAekaVHwJRVx6nnw== X-Google-Smtp-Source: AGHT+IFMX6XBGOJzveRdiJrNI2VJ8y0D4H4cU3CcjSlAqckRRV/i0G91hSjvH0c/Ia5kNbaFF7/Y X-Received: by 2002:a05:6a21:27a8:b0:1b8:a3c5:3475 with SMTP id adf61e73a8af0-1b8bef99c64mr1509561637.4.1718240126145; Wed, 12 Jun 2024 17:55:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718240126; cv=pass; d=google.com; s=arc-20160816; b=bCVlQ9vyw5MHycMOgF+G3nP40CFWvZJfCy3VuBIErU8WMjlYKwHm2Pj3KMUXc/sclU GGUqEKzVUTtxN+gWVgm3M5sOayM4YtDfaJN0XR1zltA3u73uQtl4p1uqk47R037yPLxK drkpUrUMzm48UAe0S2+C0qocX6NJedNqtnClcwkf+HWl+CbXgTJZlO6l/nmh9aMvUvef ROLHDdGDtRRUEuy+xm0loJA6tMYZnzHIVf6cYU8iJGn6evWLpJza7az2wyLwmrAdk6UN FzaM9i5Ke4SsUKOqVzIGZOLa42sMKxID/fRKzaejvcU776eS7oFiAXL1Yw0o2ib6QxS1 K8Cg== 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 :subject:cc:to:from:date:dkim-signature; bh=TYi4VC+8uiOzmOlNHcVL+iMUkJxLfGG6uf+T4+W3d6s=; fh=T6svS2HBfJb20CoSLG39P28Ffylntj9gL8wXHcUu2ZA=; b=aMPx8HVxQa6PyhwKOgxuM7ueuWjvWZ0hRSVGgK5KQ0nTc2zxeUIerOxBY/vfu68QQg C6AEQ/2X+WEUGTNXNAlC0c1DaMf2pgvhzz7h9D9EygDsB1q/swFNO5G0/uQ4F23v1Yzg mxG4c1KSzrgYohdmpnbfAm4VsZeq3zDtQQh5MoiuT5xbD1SguQa+Sg5GkuFqvsBxd4eY PT82E0G15oc3NRFee7X2zUy7NKngQaAZcGdvYOsZfCaOjAiZAZZaZoS71mn7TLPmjEP+ AihwCt07PNPv2sS57lQ21vtdQu/+JWt1zC49fAxqOpBXK2KU1TWayjXBsK4S8JmWqHeF 8eBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z3mVWHpI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212417-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fedd5e96c8si194462a12.8.2024.06.12.17.55.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 17:55:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z3mVWHpI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212417-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BCA23282762 for ; Thu, 13 Jun 2024 00:55:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A24AB647; Thu, 13 Jun 2024 00:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Z3mVWHpI" 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 5AB778BEC; Thu, 13 Jun 2024 00:55:18 +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=1718240118; cv=none; b=s/FIqcFW3AnVo1InmMnjHD9ClBlUi2sgEltcit0VkztF7BLsiO/QZprbauzxKkIV6INVwfTI1C5MOVLtlo1XRjRJZx4jM0E4+OEwJIbbzOLqrUAScMZVxeABd78/Y6vmARpUn3Rs8HDnqWtdMoMWx18StVVT8UPCC/0T3b/rKww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718240118; c=relaxed/simple; bh=NY/yHtGY4A7z0RJf/TRPGDp4Z1Z4M73POIKRFEtGCkI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DOtLpuTs4N6m4YBQa8kyLnh6brqSXoQgi8AU92i9UugKL+rVjujnKm4MJHwUcNqGNitrixtfUaqLhH+VZpf2r5NepIW/r9AJF79aXSb87gJ0rCucNN4Q8kE7+5dFNKPGdmd+/OwbPXINp0GP6B6Ul+XMuSSoum4rk9r8RzSuRCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Z3mVWHpI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 905CBC3277B; Thu, 13 Jun 2024 00:55:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718240118; bh=NY/yHtGY4A7z0RJf/TRPGDp4Z1Z4M73POIKRFEtGCkI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Z3mVWHpI2YrgmNcLgze5ixi3afCObdFHFLYm7YumIrdppNB9SwGir8DBo1WOXWlsB XP2aL+rAIL5Ih66cBRa+sUlTjlYVL4x0g1p7pafxuPtnMVz/vrNZUvfmIycitu9ibe YXgRKxjd3lXcLe+c3o5N0duFdUVVIH1DMih+NPb9Xo1RjdKc6xNnyCDvc2EcXgmvpz A9alWcXrv42yP95ohJ2Ia/zqJrbGaRR7bR/LLeUZFliLMjK9uDX1iTS24MDQIyNqLL B/ZMTkXuBjQnwAtVptw5hSsT6kGln8f9xAqRPEGwtfL5XmJhtQfW3jzsRxLduyt5ga 1Y4LWCs5HQjmg== Date: Wed, 12 Jun 2024 17:55:16 -0700 From: Jakub Kicinski To: Erick Archer Cc: Daniele Venzano , "David S. Miller" , Eric Dumazet , Paolo Abeni , Kees Cook , "Gustavo A. R. Silva" , Justin Stitt , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] ethernet: sis900: use sizeof(*pointer) instead of sizeof(type) Message-ID: <20240612175516.02725d94@kernel.org> In-Reply-To: References: 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 Content-Transfer-Encoding: 7bit On Sat, 8 Jun 2024 12:20:33 +0200 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). > > At the same time remove some unnecessary initializations and > refactor a bit to make the code clearer. > > This patch has no effect on runtime behavior. This is an ancient driver, unfortunately we prefer not to apply minor code cleanups of this nature unless they are a part of other development work. We'd be constantly tweaking the 200+ drivers we have, most of which get zero use. -- pw-bot: reject