On Fri, Oct 30, 2009 at 09:43:47PM +0100, Johannes Berg wrote: > On Fri, 2009-10-30 at 15:11 -0400, John W. Linville wrote: > > On Thu, Oct 29, 2009 at 08:43:48AM +0100, Johannes Berg wrote: > > > The multi-line code in this macro wasn't wrapped > > > in do {} while (0) so we cannot use it in an if() > > > branch safely in the future -- fix that. > > > > > > Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> > > > > do {...} while (0) won't work for that either, right? You need > > ({...}) instead if you want to return a value. Is that what you want? > > No, I just want to be able to do > > if (...) > CALL_TXH(...) Oh, I see -- I misunderstood you. John -- John W. Linville Someday the world will need a hero, and you linville@xxxxxxxxxxxxx might be all we have. Be ready. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html