Re: serial.c

From: Rogier Wolff (R.E.Wolff@BitWizard.nl)
Date: Fri May 12 2000 - 16:47:21 EST


Theodore Y. Ts'o wrote:
>
> if (info->state->type == xxxx) {
> ...
> }
>
> blocks.

If you #define the xxxx to something that falls outside the range that
"state->type" can reach, then the compiler should optimize the block
away! Neat!

                        Roger.

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
*       Common sense is the collection of                                *
******  prejudices acquired by age eighteen.   -- Albert Einstein ********

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:21 EST