From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifgIX-0006gZ-5F for barebox@lists.infradead.org; Fri, 13 Dec 2019 08:27:42 +0000 Date: Fri, 13 Dec 2019 09:27:39 +0100 From: Sascha Hauer Message-ID: <20191213082739.onkp73p2wshwzzqy@pengutronix.de> References: <20191212193417.24093-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191212193417.24093-1-a.fatoum@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] commands: led: print actual error code when led_set fails To: Ahmad Fatoum Cc: barebox@lists.infradead.org On Thu, Dec 12, 2019 at 08:34:17PM +0100, Ahmad Fatoum wrote: > If led_set fails, the error code is the return value, not errno. > Fix this. While at replace the magic value in the command return code. > > Signed-off-by: Ahmad Fatoum > --- > commands/led.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied, thanks Sascha -- 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 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox