From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 6BCFB21885A for ; Sun, 14 Sep 2025 21:37:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757885832; cv=none; b=n5rKZjhAmZ068bXAQVH01wKoa3IEX4dcxGhh3k++DNtIpEr+ivgKBoZf2o/6xuEfy8fWxjDKNeHoyhTs+bfludQ72fexa3o0/H9f2zuH6gP1O1kTs07b91OaTe05+kbmzTbEW/6cR/whi6eRhC5mMiEcU4sGaI3KBpKHAFP184o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757885832; c=relaxed/simple; bh=0obPgRQ7Hm+Bb6cPAVsNuDVbFrVrACx8vDeCaH/fyOk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Nhbb0/N7HNuwqhSCk4gatZRQIq7IwHMlFnpFVNd5w58+gKEckyq0VlCxYDghotSh+pTKF5xdALoWi3NKrPYbyVmUL4Qs00rOWmf9Fimfq4LMR8EXuckHMv0GqMMlpY63JYv7Fdvmwq5GOXjXP5G7TmmFUBYtMn2ie68zNvBCZO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=VYiMzvbZ; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="VYiMzvbZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=lAh2 9qMOUXQ/TP64YFXHyhbZt3V0AZYWq1eFjSQXKFA=; b=VYiMzvbZwOlSk+oqTTcB OcVCIEbpJJAWaXZjzI13t6dPwMlOVbqbBxqh4OOxBGXazX1+6deHIWvLf3Km7A5a 0zMhsHkc1a1/pQI5xi7b5K8/8elJ0Oy9hlJNCNiG0PfdfxbheqJWRTlGwkn6zYsi sq0n0iobgmiNtPsLWVsHxMiiim3e3KyhTK0C1wkF9YYi9nsPpASBH5je7Bc6zpiR 0rWN4bgk+2hxEkjYUva2e//plPVeVg0d2/mBZXk4b/xA39YJgp8qWw5nDJhWNKBT yYsHWftZ23IJkeE/rHibXdOy6zr2gm2IcwPOn+LtyzoHJb5eOHiHIWualtHVq6gw ww== Received: (qmail 2122476 invoked from network); 14 Sep 2025 23:36:57 +0200 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 14 Sep 2025 23:36:57 +0200 X-UD-Smtp-Session: l3s3148p1@th6sr8k+CIQgAQnoAHzAAGOD5Y6fT3HK Date: Sun, 14 Sep 2025 23:36:56 +0200 From: Wolfram Sang To: Colin Ian King Cc: Tommaso Merciai , Alexandre Belloni , Frank Li , linux-i3c@lists.infradead.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] i3c: master: Remove ternary operator on return statement Message-ID: References: <20250902135239.2632286-1-colin.i.king@gmail.com> Precedence: bulk X-Mailing-List: kernel-janitors@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250902135239.2632286-1-colin.i.king@gmail.com> On Tue, Sep 02, 2025 at 02:52:39PM +0100, Colin Ian King wrote: > The value of ret at the end of the function renesas_i3c_daa > is always zero since previous checks for less than zero have already > exited via return paths. Hence the final ternary operator checking > for a less than zero value for ret is redundant and can be removed. > > Signed-off-by: Colin Ian King Already sent (and applied just today): https://lore.kernel.org/r/20250803211256.18513-2-wsa+renesas@sang-engineering.com