Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
David S. Miller
087d273c b69bbddf

+1 -1
+1 -1
drivers/net/arcnet/arcnet.c
··· 1007 1007 1008 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 1011 if (pkt.hard.offset[0]) { 1012 1012 ofs = pkt.hard.offset[0]; 1013 1013 length = 256 - ofs;