From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VQuig-0002Dc-9D for barebox@lists.infradead.org; Tue, 01 Oct 2013 07:50:10 +0000 Date: Tue, 1 Oct 2013 09:49:47 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Message-ID: <20131001074947.GI2548@pengutronix.de> References: <1380608528-26999-1-git-send-email-s.hauer@pengutronix.de> <1380608528-26999-4-git-send-email-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1380608528-26999-4-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 3/6] ARM: mx23-evk: Fix result checking of devfs_add_partition To: Sascha Hauer Cc: barebox@lists.infradead.org Hello Sascha, On Tue, Oct 01, 2013 at 08:22:05AM +0200, Sascha Hauer wrote: > + if (IS_ERR(cdev)) > + return PTR_ERR(cdev); > + return 0; In Linux you can use return PTR_ERR_OR_ZERO(cdev) instead. Didn't check if barebox already has that. Best regards Uwe -- = Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox