diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-07-19 01:48:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-19 20:36:03 -0400 |
commit | 087d273caf4f7d3f2159256f255f1f432bc84a5b (patch) | |
tree | 6437d73e7d6dde1f4bf6da738d2c741f1be36206 | |
parent | b69bbddfa136dc53ac319d58bc38b41f8aefffea (diff) |
arcnet: cleanup sizeof parameter
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>
-rw-r--r-- | drivers/net/arcnet/arcnet.c | 2 |
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) | |||
1007 | 1007 | ||
1008 | soft = &pkt.soft.rfc1201; | 1008 | soft = &pkt.soft.rfc1201; |
1009 | 1009 | ||
1010 | lp->hw.copy_from_card(dev, bufnum, 0, &pkt, sizeof(ARC_HDR_SIZE)); | 1010 | lp->hw.copy_from_card(dev, bufnum, 0, &pkt, ARC_HDR_SIZE); |
1011 | if (pkt.hard.offset[0]) { | 1011 | if (pkt.hard.offset[0]) { |
1012 | ofs = pkt.hard.offset[0]; | 1012 | ofs = pkt.hard.offset[0]; |
1013 | length = 256 - ofs; | 1013 | length = 256 - ofs; |