projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
319cd52
)
sh_eth: Remove redundant alignment adjustment
author
Mitsuhiro Kimura
<
[email protected]
>
Mon, 8 Dec 2014 10:46:21 +0000
(19:46 +0900)
committer
David S. Miller
<
[email protected]
>
Tue, 9 Dec 2014 23:05:08 +0000
(18:05 -0500)
PTR_ALIGN macro after skb_reserve is redundant, because skb_reserve
function adjusts the alignment of skb->data.
Signed-off-by: Mitsuhiro Kimura <
[email protected]
>
Signed-off-by: Yoshihiro Kaneko <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/renesas/sh_eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/renesas/sh_eth.c
b/drivers/net/ethernet/renesas/sh_eth.c
index e77025915b235cff096fadb60f61d38d6d2da638..ad2e285aefd4e8d8c4a6ff3e967e8f5f7660106f 100644
(file)
--- a/
drivers/net/ethernet/renesas/sh_eth.c
+++ b/
drivers/net/ethernet/renesas/sh_eth.c
@@
-1142,7
+1142,7
@@
static void sh_eth_ring_format(struct net_device *ndev)
/* RX descriptor */
rxdesc = &mdp->rx_ring[i];
- rxdesc->addr = virt_to_phys(
PTR_ALIGN(skb->data, 4)
);
+ rxdesc->addr = virt_to_phys(
skb->data
);
rxdesc->status = cpu_to_edmac(mdp, RD_RACT | RD_RFP);
/* The size of the buffer is 16 byte boundary. */
@@
-1476,7
+1476,7
@@
static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota)
sh_eth_set_receive_align(skb);
skb_checksum_none_assert(skb);
- rxdesc->addr = virt_to_phys(
PTR_ALIGN(skb->data, 4)
);
+ rxdesc->addr = virt_to_phys(
skb->data
);
}
if (entry >= mdp->num_rx_ring - 1)
rxdesc->status |=