Re: [PATCH -v4] x86: do not free zero sized per cpu areas

From: Linus Torvalds
Date: Fri Mar 19 2010 - 21:03:58 EST




On Fri, 19 Mar 2010, Yinghai Lu wrote:
> +
> + if (start > end) {
> + WARN_ONCE(1,
> + "free_early_partial got wrong start/end %#llx/%#llx\n",
> + start, end);
> +
> + return;

This should be written as

if (WARN_ONCE(start > end, "free_early_partial(%#llx/%#llx)\n", start, end))
return;

rather than having a separate conditional.

Linus
--
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/