The patch titled c2port: fix device_create() return value check has been removed from the -mm tree. Its filename was c2port-fix-device_create-return-value-check.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: c2port: fix device_create() return value check From: Jani Nikula <ext-jani.1.nikula@xxxxxxxxx> Use IS_ERR() instead of comparing to NULL. [akpm@xxxxxxxxxxxxxxxxxxxx: preserve the error code] Signed-off-by: Jani Nikula <ext-jani.1.nikula@xxxxxxxxx> Cc: Vegard Nossum <vegard.nossum@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/misc/c2port/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/misc/c2port/core.c~c2port-fix-device_create-return-value-check drivers/misc/c2port/core.c --- a/drivers/misc/c2port/core.c~c2port-fix-device_create-return-value-check +++ a/drivers/misc/c2port/core.c @@ -912,8 +912,8 @@ struct c2port_device *c2port_device_regi c2dev->dev = device_create(c2port_class, NULL, 0, c2dev, "c2port%d", id); - if (unlikely(!c2dev->dev)) { - ret = -ENOMEM; + if (unlikely(IS_ERR(c2dev->dev))) { + ret = PTR_ERR(c2dev->dev); goto error_device_create; } dev_set_drvdata(c2dev->dev, c2dev); _ Patches currently in -mm which might be from ext-jani.1.nikula@xxxxxxxxx are origin.patch linux-next.patch errh-add-__must_check-to-error-pointer-handlers.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html