Umm. If I was a compiler, I'd be warning about this. You don't get a
warning about suggesting parentheses around the '&'?
Also, regardless of lack of warnings, the natural way to do this is to
just say
if (res->flags & (IORESOURCE_DISABLED | IORESOURCE_UNSET))
continue;
which is what any sane compiler would rewrite it to anyway, but since it's
not just more readable for computers, but for humans too, why not do it
that way?
Linus
--