[PATCH] r8169: Fix iteration variable sign
authorFrancois Romieu <romieu@fr.zoreil.com>
Wed, 29 Nov 2006 21:21:33 +0000 (22:21 +0100)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 29 Nov 2006 21:45:07 +0000 (13:45 -0800)
commit315917d23fdd20a0f4ff99b9228de5840d9d276c
treed1ddfc02bcfe5c7f57ed604c7d928d6e1bd74d11
parentaf768c6711de615abf9c679732a2f8245a4c286c
[PATCH] r8169: Fix iteration variable sign

This changes the type of variable "i" in rtl8169_init_one()
from "unsigned int" to "int". "i" is checked for < 0 later,
which can never happen for "unsigned". This results in broken
error handling.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/net/r8169.c