Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9db7720cca8f55a1e0c8d0dc1587e35dca50afbf
Commit:     9db7720cca8f55a1e0c8d0dc1587e35dca50afbf
Parent:     81d9ddae856678c45297550e9353c8a5a7fd6438
Author:     Roel Kluin <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 13 03:16:17 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Nov 13 03:16:17 2007 -0800

    [MYRI_SBUS]: Prevent that myri_do_handshake lies about ticks.
    
    With '<=' tick can be incremented up to 26, The last loop is redundant
    since even when 'softstate' becomes 'STATE_READY', 'if (tick > 25)'
    will still cause the function to return -1,
    
    Signed-off-by: Roel Kluin <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 drivers/net/myri_sbus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/myri_sbus.c b/drivers/net/myri_sbus.c
index 8d29319..656a260 100644
--- a/drivers/net/myri_sbus.c
+++ b/drivers/net/myri_sbus.c
@@ -134,7 +134,7 @@ static int myri_do_handshake(struct myri_eth *mp)
 
        myri_disable_irq(mp->lregs, cregs);
 
-       while (tick++ <= 25) {
+       while (tick++ < 25) {
                u32 softstate;
 
                /* Wake it up. */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to