Re: [patch] mousedev.c

From: Russell King (rmk@arm.linux.org.uk)
Date: Fri Sep 22 2000 - 11:49:47 EST


Igmar Palsenberg writes:
> Patch looks not necessary. The compiler executes the statements until it
> encounters a break.
>
> > - case BTN_EXTRA: if (list->mode > 1) { index = 4; break; }
> > + case BTN_EXTRA: if (list->mode > 1) index = 4; break;

You're telling us that:

        if (list->mode > 1) {
                index = 4;
                break;
        }

is the same as:

        if (list->mode > 1)
                index = 4;
        break;

?
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:27 EST