Re: [patch] CodingStyle: add some more error handling guidelines

From: Dan Carpenter
Date: Wed Dec 03 2014 - 08:20:30 EST


Sorry. I misread your email. If the code looks like this:

foo = kmalloc();
if (!foo)
goto kmalloc_failed;

The "kmalloc_failed" doesn't add any information. We can see that
kmalloc failed from the context.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/