https://github.com/torvalds/linux
Revision cb958186ed543d1a4f074ceb1c783fe8b0908437 authored by Eric Sesterhenn on 19 August 2006, 17:37:57 UTC, committed by Jeff Garzik on 24 August 2006, 04:37:04 UTC
while playing with gcc 4.1 -Wextra warnings, I came across this one:

drivers/net/3c515.c:1027: warning: comparison of unsigned expression >= 0 is always true

Since i is unsigned the >= 0 check in the for loop is always true,
so we might spin there forever unless the if condition triggers.
Since i is only used in this loop, this patch changes it to
an integer.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
1 parent a76b044
History
Tip revision: cb958186ed543d1a4f074ceb1c783fe8b0908437 authored by Eric Sesterhenn on 19 August 2006, 17:37:57 UTC
[PATCH] Signedness issue in drivers/net/3c515.c
Tip revision: cb95818
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 521 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 70.9 KB
Makefile -rw-r--r-- 46.5 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top