Re: [PATCH 6/6] proc: use IS_ERR_OR_NULL()

From: Alexey Dobriyan
Date: Thu Apr 12 2012 - 09:23:55 EST


On Wed, Apr 11, 2012 at 8:59 AM, Cong Wang <xiyou.wangcong@xxxxxxxxx> wrote:
> - Â Â Â if (mm && !IS_ERR(mm)) {
> + Â Â Â if (!IS_ERR_OR_NULL(mm)) {

I personally find original code way more readable.
--
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/