summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-07-19 08:48:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-11 15:38:44 -0700
commitc062773fe4a98d935335b75e75c0d1a14a29b680 (patch)
treef1284bb51fb8ec0b1cf9d65572a97921a0fe187f
parent2d8be9cf0668fab848b9b7740f0725ae9181b703 (diff)
downloadlwn-c062773fe4a98d935335b75e75c0d1a14a29b680.tar.gz
lwn-c062773fe4a98d935335b75e75c0d1a14a29b680.zip
arcnet: cleanup sizeof parameter
[ Upstream commit 087d273caf4f7d3f2159256f255f1f432bc84a5b ] This patch doesn't change the compiled code because ARC_HDR_SIZE is 4 and sizeof(int) is 4, but the intent was to use the header size and not the sizeof the header size. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/arcnet/arcnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c
index a746ba272f04..a956053608f9 100644
--- a/drivers/net/arcnet/arcnet.c
+++ b/drivers/net/arcnet/arcnet.c
@@ -1007,7 +1007,7 @@ static void arcnet_rx(struct net_device *dev, int bufnum)
soft = &pkt.soft.rfc1201;
- lp->hw.copy_from_card(dev, bufnum, 0, &pkt, sizeof(ARC_HDR_SIZE));
+ lp->hw.copy_from_card(dev, bufnum, 0, &pkt, ARC_HDR_SIZE);
if (pkt.hard.offset[0]) {
ofs = pkt.hard.offset[0];
length = 256 - ofs;