chelsio: Fix build warning.
authorDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2010 10:07:17 +0000 (03:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2010 10:07:17 +0000 (03:07 -0700)
commit18d777a5bcf31491021f527d32b72dd16f911fe0
tree128f7d733523ab54b1cd158e9276f428964da31b
parent6f59d6604d9361ef53a7721fb8aa1687ad6f8448
chelsio: Fix build warning.

GCC warns that:

drivers/net/chelsio/sge.c:463:11: warning: operation on 's->port' may be undefined

Better to eliminate the side effects in the calculation and
express what was intended here.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/chelsio/sge.c