From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 25F4E133987 for ; Wed, 9 Oct 2024 04:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728448699; cv=none; b=Gt1P5a4eWmZ6v5bZKMIX/IAKNbvuykNv5RlWBmTluVfhP4iVVighzRQSyRzi//XnC6kFhzR1qPKSDpih7xOzgdP6XdP94KjvDA5+pShyWowUJnkccsbrgg109tdevl9dW+9ZaPu37jRUyiC/sy1Im7/F/HN2g00C2VSmsUus3Gs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728448699; c=relaxed/simple; bh=94qokWWBV+zJu1MoBNVGt+rDmogKYb+rxsgeu8O6Zmw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c5c87kXw7ZUoIil3Z1T7g2c7GYk//FfHBhXi5nkeTpuoiK+u1Yi3EJ36PfmJSpXExG/QKol+2xBkzxYZ/tf30gdC+D9yi95Kn8+ItZAnbm6u4c5+opmFJ+UlIG36GBnglV9NSf9UN2zdKggCbw6r3QES1KR7iwPDn6tvpi+rGhY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1syOSd-0001L3-T4; Wed, 09 Oct 2024 06:38:07 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syOSd-000Wbe-9g; Wed, 09 Oct 2024 06:38:07 +0200 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1syOSd-0020j4-0a; Wed, 09 Oct 2024 06:38:07 +0200 Date: Wed, 9 Oct 2024 06:38:07 +0200 From: Oleksij Rempel To: Kory Maincent Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Donald Hunter , Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, Kyle Swenson , Dent Project , kernel@pengutronix.de Subject: Re: [PATCH net-next 03/12] net: pse-pd: tps23881: Simplify function returns by removing redundant checks Message-ID: References: <20241002-feature_poe_port_prio-v1-0-787054f74ed5@bootlin.com> <20241002-feature_poe_port_prio-v1-3-787054f74ed5@bootlin.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20241002-feature_poe_port_prio-v1-3-787054f74ed5@bootlin.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org On Wed, Oct 02, 2024 at 06:27:59PM +0200, Kory Maincent wrote: > From: Kory Maincent (Dent Project) > > Cleaned up several functions in tps23881 by removing redundant checks on > return values at the end of functions. These check has been removed, and > the return statement now directly returns the function result, reducing > the code's complexity and making it more concise. > > Signed-off-by: Kory Maincent Acked-by: Oleksij Rempel Thank you! -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |