On Saturday 20 December 2008 10:26:54 Adrian McMenamin wrote:> + mdev = to_maple_dev(dev);> + if (!mdev) {> + error = EINVAL;> + goto fail;> + }> + > + mdrv = to_maple_driver(dev->driver);> + if (!mdrv) {> + error = EINVAL;> + goto fail;> + } This will never happen - to_maple_* are simple wrappers around container_of and so the result will never be NULL but some small offset from it if dev is NULL. I'm staying on the old version of the patch with small fixups. -- Dmitryÿôèº{.nÇ+?·?®??+%?Ëÿ±éݶ¥?wÿº{.nÇ+?·¥?{±þ)éºßâ?Ø^n?r¡öŠzË?ëh?šèÚ&£ûàz¿äz¹Þ?ú+?Ê+zf£¢·h??§~??Ûiÿÿï?êÿ?êçz_è®æj:+v?šþ)ߣøm