The patch titled Subject: thermal: spear13xx: checking for NULL instead of IS_ERR() has been added to the -mm tree. Its filename is thermal-spear13xx-checking-for-null-instead-of-is_err.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Subject: thermal: spear13xx: checking for NULL instead of IS_ERR() thermal_zone_device_register() never returns NULL, on error it returns and ERR_PTR(). Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Reviewed-by: Viresh Kumar <viresh.kumar@xxxxxx> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@xxxxxx> Cc: Len Brown <lenb@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/thermal/spear_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/thermal/spear_thermal.c~thermal-spear13xx-checking-for-null-instead-of-is_err drivers/thermal/spear_thermal.c --- a/drivers/thermal/spear_thermal.c~thermal-spear13xx-checking-for-null-instead-of-is_err +++ a/drivers/thermal/spear_thermal.c @@ -149,9 +149,9 @@ static int spear_thermal_probe(struct pl spear_thermal = thermal_zone_device_register("spear_thermal", 0, stdev, &ops, 0, 0, 0, 0); - if (!spear_thermal) { + if (IS_ERR(spear_thermal)) { dev_err(&pdev->dev, "thermal zone device is NULL\n"); - ret = -EINVAL; + ret = PTR_ERR(spear_thermal); goto disable_clk; } _ Subject: Subject: thermal: spear13xx: checking for NULL instead of IS_ERR() Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are origin.patch linux-next.patch pps-class_create-returns-an-err_ptr-not-null.patch c2port-class_create-returns-an-err_ptr.patch thermal-spear13xx-checking-for-null-instead-of-is_err.patch slab-introduce-kmalloc_array.patch mm-compaction-make-compact_control-order-signed.patch mm-compaction-make-compact_control-order-signed-fix.patch drivers-leds-leds-tca6507c-cleanup-error-handling-in-tca6507_probe.patch epoll-remove-unneeded-variable-in-reverse_path_check.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