Commit 3b5e26f7 authored by Al Viro's avatar Al Viro Committed by Jeff Garzik

more misannotations: ne2k-pci

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 63734a32
...@@ -535,9 +535,9 @@ static void ne2k_pci_block_input(struct net_device *dev, int count, ...@@ -535,9 +535,9 @@ static void ne2k_pci_block_input(struct net_device *dev, int count,
if (count & 3) { if (count & 3) {
buf += count & ~3; buf += count & ~3;
if (count & 2) { if (count & 2) {
u16 *b = (u16 *)buf; __le16 *b = (__le16 *)buf;
*b++ = le16_to_cpu(inw(NE_BASE + NE_DATAPORT)); *b++ = cpu_to_le16(inw(NE_BASE + NE_DATAPORT));
buf = (char *)b; buf = (char *)b;
} }
if (count & 1) if (count & 1)
...@@ -600,9 +600,9 @@ static void ne2k_pci_block_output(struct net_device *dev, int count, ...@@ -600,9 +600,9 @@ static void ne2k_pci_block_output(struct net_device *dev, int count,
if (count & 3) { if (count & 3) {
buf += count & ~3; buf += count & ~3;
if (count & 2) { if (count & 2) {
u16 *b = (u16 *)buf; __le16 *b = (__le16 *)buf;
outw(cpu_to_le16(*b++), NE_BASE + NE_DATAPORT); outw(le16_to_cpu(*b++), NE_BASE + NE_DATAPORT);
buf = (char *)b; buf = (char *)b;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment