lkml.org 
[lkml]   [2009]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] WARN_ONCE(): use bool for boolean flag
From
Date
On Sun, 2009-09-27 at 10:53 -0300, Cesar Eduardo Barros wrote:
> #define
> WARN_ON_ONCE(condition) ({ \
> - static int __warned; \
> + static bool __warned; \
> int __ret_warn_once = !!(condition); \

Could __ret_warn_once be bool also ? It looks like just another
conditional variable..

Daniel



\
 
 \ /
  Last update: 2009-09-27 16:07    [W:0.256 / U:1.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site