Re: [PATCH] percpu: use INT_MAX as sentinel value of unit_map

From: Tejun Heo
Date: Tue Aug 10 2010 - 11:08:42 EST


On 08/10/2010 04:58 PM, Namhyung Kim wrote:
> unit_map is a pointer to int so it would be more reasonable to use INT_MAX
> as sentinel value.
>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>

Hmmm... yeah unit_map used to be uint. I'd much prefer -1 (which
would actually result in the same code BTW) over INT_MAX tho.

Thanks.

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