aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-01-05 21:18:45 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-05 21:18:45 -0500
commitfd2df4f7439cd3e87090e067d5aec8f1336f4f0e (patch)
treeb889d344981a9c1a97a879d89eae2a4103be9397 /drivers/net/qlge
parenta303ce0972d04036316e85568682a2b89fe123d9 (diff)
qlge: Fix sparse endian warning in ql_hw_csum_setup().
Changed u16 to __sum16 usage. Warnings: drivers/net/qlge/qlge_main.c:1897:9: warning: incorrect type in assignment (different base types) drivers/net/qlge/qlge_main.c:1897:9: expected unsigned short [usertype] *check drivers/net/qlge/qlge_main.c:1897:9: got restricted unsigned short *<noident> drivers/net/qlge/qlge_main.c:1903:9: warning: incorrect type in assignment (different base types) drivers/net/qlge/qlge_main.c:1903:9: expected unsigned short [usertype] *check drivers/net/qlge/qlge_main.c:1903:9: got restricted unsigned short *<noident> drivers/net/qlge/qlge_main.c:1909:9: warning: incorrect type in assignment (different base types) drivers/net/qlge/qlge_main.c:1909:9: expected unsigned short [unsigned] [short] [usertype] <noident> Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge')
-rw-r--r--drivers/net/qlge/qlge_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 837be72efb02..d7894aa2ebe3 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -1884,7 +1884,7 @@ static void ql_hw_csum_setup(struct sk_buff *skb,
1884{ 1884{
1885 int len; 1885 int len;
1886 struct iphdr *iph = ip_hdr(skb); 1886 struct iphdr *iph = ip_hdr(skb);
1887 u16 *check; 1887 __sum16 *check;
1888 mac_iocb_ptr->opcode = OPCODE_OB_MAC_TSO_IOCB; 1888 mac_iocb_ptr->opcode = OPCODE_OB_MAC_TSO_IOCB;
1889 mac_iocb_ptr->frame_len = cpu_to_le32((u32) skb->len); 1889 mac_iocb_ptr->frame_len = cpu_to_le32((u32) skb->len);
1890 mac_iocb_ptr->net_trans_offset = 1890 mac_iocb_ptr->net_trans_offset =