]> git.baikalelectronics.ru Git - kernel.git/commit
igb: fix anoying type mismatch warning on rx/tx queue sizing
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 02:47:12 +0000 (18:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 02:47:12 +0000 (18:47 -0800)
commit2b155dade050838198dc89f6a8a49f7ad0d75b3a
treef3eec0c563da05c2f0de3463edd45735c9c2f3c7
parent205b7353514fe84313c44123318cd346029438ab
igb: fix anoying type mismatch warning on rx/tx queue sizing

When using "min()", the types of both sides should match.  With the cpu
mask changes, the type of num_online_cpus() will now depend on config
options. Use "min_t()" with an explicit type instead.

And make the rx/tx case look the same too, just for sanity.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/igb/igb_main.c