Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp112901rdb; Wed, 14 Feb 2024 14:43:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWEfaYDjZPZHKyLmS7jd8PiK5OoEkaVAlnqA4Iukpf9P5fNPWn/Rm4NTT4eZjL5n47ZezJNf5Q99QQzSIxmydznI+Acjb2TAInANWUJpg== X-Google-Smtp-Source: AGHT+IHHYoBZIZjGKymYNmSkgLPHTcV74lDcxvAoWwx1729bpeG68dI+29G7wjKO+2684Of6v6/c X-Received: by 2002:a05:6a00:98b:b0:6e0:3b67:3531 with SMTP id u11-20020a056a00098b00b006e03b673531mr223913pfg.33.1707950588287; Wed, 14 Feb 2024 14:43:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707950588; cv=pass; d=google.com; s=arc-20160816; b=iGKohZc/ij74oNaL7J93tHGTMM2rtm3RovAXHEuW2jz95BkjEfca37oES1g8gvDOOQ 7MGYpSYVwnd47m8JZQhugN+X/byhS7NNfRlsSzCNBwz94jxlX7tgAQulXCPXlHof06HP 7HoniH4S4Fp7aaJUqmrPRJdJIlqpMrqbEwVLGJCRYWupAW6BDzvRy89Vid9K3oWPCzwN Kb7NarOc8H1dQoL436+bhWvUAS7gI5Ou8fzGwPU0XJP432N0FXmefyF5F6jTgL6DHjxe kGR1+PrQo51rc1dD5iticGGuUP7MFghMs8SWPXM1ON608Xn5hh+meBGJPTnaSfTnd8CQ 9/Nw== 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:date:message-id:subject :references:in-reply-to:cc:to:from; bh=GyXeAHN54qh5ThKjNM9nSPKNQCTtpJXIWoDquwuw130=; fh=B+jPl5gzr20UgWbpAHNsXGJiH3exnWlgPIMVwywM7TY=; b=d3c+OQN8Zyg99mDXwOD0BqPQXMa02/LlbHOyLjkddC69dKkzGlO0NYyRxjB8F4Sfhy koqy9MCMEg5o5gat4Rph/O4D7SLAVgw94Y+X65eIQQ7ES/bzB/It9KYpznSdXG8VG0vk 7WUk6DTUAsvN3BJ36/oQxs0KkGfWrBzrGXOW913O4ovtInuvHiAnO6T/U5dJ2/wceO67 50nooBxdsFVHhhalzt+I9gfN5x3WuqG+x04xyfPy47hKiEk1q/cAjSraF3OAOkRmAsPe dC3D/BJ5YPGcUXjkzEnWGfYo6uqgOiFrwIIu5zSYylq+TeqG+Gojp5EhoW3QY0Kfu6+5 40PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=etezian.org); spf=pass (google.com: domain of linux-kernel+bounces-66072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66072-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCU3Ksf2G1nLGGiCgI6m5OEQnmB3sgQ8pQh2tBjENDOqHsHyKy0Yxzn8wJiDwynmmkKOFC5bncoSTR22iPBmFpZBDceoMUQae4ZWKf0Dkg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q6-20020a656846000000b005d8b884ae31si4257261pgt.568.2024.02.14.14.43.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 14:43:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66072-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; arc=pass (i=1 spf=pass spfdomain=etezian.org); spf=pass (google.com: domain of linux-kernel+bounces-66072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66072-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 EE024281AD6 for ; Wed, 14 Feb 2024 22:43:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEDA024B21; Wed, 14 Feb 2024 22:43:01 +0000 (UTC) Received: from 12.mo561.mail-out.ovh.net (12.mo561.mail-out.ovh.net [188.165.41.191]) (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 6462A24B33 for ; Wed, 14 Feb 2024 22:42:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.165.41.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707950581; cv=none; b=rUJ9SPTcigurFjhufPry+DRaJR9yNTrAL9EDlpFEoFiXvp7XbW3V6uUDsgGL+m6ndWpQ82k3bZuf2yJE4jpIzneAEjPgGOkBhj/ntUUuA51hHwkNpCcI6ECw3KHADzT1XQii2JQG6QY2RxLRM1ove0cuN8tKk+M6Ey94gEIYBUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707950581; c=relaxed/simple; bh=8IKT/Bb8CyKfUbAKJZcwS4WxswL0YJYeSnHUhSLM34g=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=JuumcUtBIJwuYVB1KwuUTw0te9Xuc3AHYIDuBYyy5BOK7YXy8IuJ1Dqz36oSoVg4b/jBND6RWeRzca0vCz8MyMHob5cG8whkuOcKLsd1WKtt8FDI4904q+38rFiKFWoXBmoU7cuvbu4chIoMTulhvaRDRjrUAxqjtrL0+ec7MTc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=etezian.org; arc=none smtp.client-ip=188.165.41.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=etezian.org Received: from director8.ghost.mail-out.ovh.net (unknown [10.109.176.110]) by mo561.mail-out.ovh.net (Postfix) with ESMTP id 4TZt7D56lyz1FhH for ; Wed, 14 Feb 2024 22:25:28 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-g6lsk (unknown [10.110.113.83]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 5CEE21FDC1; Wed, 14 Feb 2024 22:25:24 +0000 (UTC) Received: from etezian.org ([37.59.142.108]) by ghost-submission-6684bf9d7b-g6lsk with ESMTPSA id kOdFN9Q9zWW2+BMA5AQA5w (envelope-from ); Wed, 14 Feb 2024 22:25:24 +0000 Authentication-Results:garm.ovh; auth=pass (GARM-108S0028a4cc169-7cca-414a-93f3-2f549766b70e, C0FC2E5C6A7315DD97BDDE4B9606AB6EEADB6D9F) smtp.auth=andi@etezian.org X-OVh-ClientIp:89.217.109.169 From: Andi Shyti To: Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , openbmc@lists.ozlabs.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Rand Deeb Cc: deeb.rand@confident.ru, lvc-project@linuxtesting.org, voskresenski.stanislav@confident.ru In-Reply-To: <20240206194201.10054-1-rand.sec96@gmail.com> References: <20240206194201.10054-1-rand.sec96@gmail.com> Subject: Re: [PATCH] i2c: Remove redundant comparison in npcm_i2c_reg_slave Message-Id: <170794952331.4171357.5051078389218008556.b4-ty@kernel.org> Date: Wed, 14 Feb 2024 23:25:23 +0100 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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.4 X-Ovh-Tracer-Id: 4456311833711348360 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrudejgdduiedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvegjfhfukfffgggtgffosehtjeertdertdejnecuhfhrohhmpeetnhguihcuufhhhihtihcuoegrnhguihdrshhhhihtiheskhgvrhhnvghlrdhorhhgqeenucggtffrrghtthgvrhhnpeffteehudffvdfhudfgffdugfejjeduheehgeefgeeuhfeiuefghffgueffvdfgfeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeduvdejrddtrddtrddupdekledrvddujedruddtledrudeiledpfeejrdehledrudegvddruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoegrnhguihesvghtvgiiihgrnhdrohhrgheqpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehiedupdhmohguvgepshhmthhpohhuth Hi On Tue, 06 Feb 2024 22:42:01 +0300, Rand Deeb wrote: > In the npcm_i2c_reg_slave() function, there was a redundant > comparison that checked if 'bus->slave' was null immediately after > assigning it the 'client' value. There were concerns about a > potential null dereference because of `client->adapter`, but > according to Wolfram Sang, "we trusted ourselves here" Therefore, > this comparison is unnecessary. > > [...] Applied to i2c/i2c-host on git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git Thank you, Andi Patches applied =============== [1/1] i2c: Remove redundant comparison in npcm_i2c_reg_slave commit: 48acf8292280f257fb0047478153a81471ee7f4d