Thread (15 messages) 15 messages, 6 authors, 2008-06-04

Re: [PATCH] SMSC LAN911x and LAN921x vendor driver

From: Peter Korsgaard <jacmet@sunsite.dk>
Date: 2008-06-02 18:32:38

Possibly related (same subject, not in this thread)

quoted
quoted
quoted
quoted
"Bill" == Bill Gatliff [off-list ref] writes:
 >>> +	/* Initialise tx packet using broadcast destination address */
 >>> +	for (i = 0; i < 6; i++)
 >>> +		pdata->loopback_tx_pkt[i] = (char)0xFF;
 >> 
 >> The cast to char is just noise.

 Bill> Not sure.  What about signed vs. unsigned?

No, because char can be both signed and unsigned. The driver should
rather do a memset(pdate->loopback_tx_pkt, 0xff, ETH_ALEN);

-- 
Bye, Peter Korsgaard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help