[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <547F0F2A.3060708@users.sourceforge.net>
Date: Wed, 03 Dec 2014 14:24:58 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Dan Carpenter <dan.carpenter@...cle.com>
CC: Julia Lawall <julia.lawall@...6.fr>, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
Jonathan Corbet <corbet@....net>,
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>,
Coccinelle <cocci@...teme.lip6.fr>, backports@...r.kernel.org,
Johannes Berg <johannes@...solutions.net>,
"Luis R. Rodriguez" <mcgrof@...e.com>
Subject: Re: [patch] CodingStyle: add some more error handling guidelines
> 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.
I find that this such a name approach would fit to your
expectation of a source-oriented labeling of these identifiers.
> We can see that kmalloc failed from the context.
Which name pattern do you find more appropriate in such
an use case?
Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists