From: Tom Rini Date: Wed, 2 Dec 2020 16:22:12 -0500 Subject: [PATCH 3/4] IPQ40xx: clk: dont always return 0 In-Reply-To: <20201028125626.40067-3-robert.marko@sartura.hr> References: <20201028125626.40067-1-robert.marko@sartura.hr> <20201028125626.40067-3-robert.marko@sartura.hr> Message-ID: <20201202212212.GR32272@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 28, 2020 at 01:56:25PM +0100, Robert Marko wrote: > Currently the driver will go through the clock ID-s and set/enable them as needed. > But if the ID is unknown it will fall through the switch case to the default case which will always return 0. > > This is not correct and default cases should return a error code since clock ID is unknown. > So lets return -EINVAL instead. > > Signed-off-by: Robert Marko > Cc: Luka Perkov Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: