Re: [RFC 1/1] driver core: Add dev_*_ratelimited() family
From: Bernd Petrovitsch
Date: Sat May 12 2012 - 08:07:56 EST
Hi!
On Sam, 2012-05-12 at 12:52 +0200, Hiroshi Doyu wrote:
[...]
> An unclosed "if" statement in the MACRO seems a bit risky, but I don't
> have any better/simple solution for this, ATM. Is there any alternative?
No, the "do { ... } while (0)" is actually the only one and widely used
- not only in the Linux kernel.
[....]
Bernd
--
Bernd Petrovitsch Email : bernd@xxxxxxxxxxxxxxxxxxx
LUGA : http://www.luga.at
--
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/