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/ | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox