[PATCH 3/6] ARM: mx23-evk: Fix result checking of devfs_add_partition

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue Oct 1 03:49:47 EDT 2013


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önig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the barebox mailing list