Re: [PATCH 5/8] idr: covert BUG_ON() to WARN_ON_ONCE() if the argument is invalid.
From: Tejun Heo
Date: Fri Apr 18 2014 - 13:14:35 EST
On Fri, Apr 18, 2014 at 08:49:52PM +0800, Lai Jiangshan wrote:
> @@ -1135,7 +1136,7 @@ void ida_simple_remove(struct ida *ida, unsigned int id)
> {
> unsigned long flags;
>
> - BUG_ON((int)id < 0);
> + WARN_ON_ONCE((int)id < 0);
Shouldn't this be moved to ida_remove()? Also, it probably should
return afterwards?
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/