cxgb4: Use ntohs() on __be16 value instead of htons()
authorRoland Dreier <rdreier@cisco.com>
Wed, 21 Apr 2010 08:09:21 +0000 (08:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Apr 2010 06:00:43 +0000 (23:00 -0700)
commit62718b328f972f1559feb96dfccc15fc9f4c9a2c
treeff023fa05fdf3b03c0c46d9bc97632a7e341e451
parentb002a861092b0db128800794a116cc3acc5ec239
cxgb4: Use ntohs() on __be16 value instead of htons()

Use the correct direction of byte-swapping function to fix a mistake
shown by sparse endianness checking -- c.fl0id is __be16.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/sge.c