Re: [PATCH 1/4] include: add BUG_RETURN_* macros

2012-05-15 Thread Alan Coopersmith
On 05/15/12 03:26 AM, Peter Hutterer wrote: > Helper functions to avoid things like > > if (foo) { > BUG_WARN(foo); > return 1; > } > > Signed-off-by: Peter Hutterer > --- > include/misc.h | 12 > 1 file changed, 12 insertions(+) > > diff --git a/include/misc.h b/include

[PATCH 1/4] include: add BUG_RETURN_* macros

2012-05-15 Thread Peter Hutterer
Helper functions to avoid things like if (foo) { BUG_WARN(foo); return 1; } Signed-off-by: Peter Hutterer --- include/misc.h | 12 1 file changed, 12 insertions(+) diff --git a/include/misc.h b/include/misc.h index 41c1333..fea74b8 100644 --- a/include/misc.h +++ b/inclu