Re: [PATCH 2/4] Staging: vt6655: use is_broadcast_ether_addr instead of custom macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok,

On Wed, May 19, 2010 at 11:48:51AM -0700, Joe Perches wrote:

> An ethernet broadcast address is also an ethernet multicast
> address, so some of these are redundant, but that's probably
> for another patch.
> 
> > -    if (!is_multicast_ether_addr(pbyFrame) && !IS_BROADCAST_ADDRESS(pbyFrame)) {
> > +    if (!is_multicast_ether_addr(pbyFrame) && !is_broadcast_ether_addr(pbyFrame)) {
> []
> >          if (is_multicast_ether_addr(&(psEthHeader->abyDstAddr[0])) ||
> > -            IS_BROADCAST_ADDRESS(&(psEthHeader->abyDstAddr[0]))) {
> > +            is_broadcast_ether_addr(&(psEthHeader->abyDstAddr[0]))) {
> []
> >          if (is_multicast_ether_addr(&(psEthHeader->abyDstAddr[0])) ||
> > -            IS_BROADCAST_ADDRESS(&(psEthHeader->abyDstAddr[0]))) {
> > +            is_broadcast_ether_addr(&(psEthHeader->abyDstAddr[0]))) {
> 

I'll make a patch where I remove the is_multicast_ether_addr where
appropriate.

> Also, "&(foo->bar[0])" can generally be replace by "foo->bar"
> for easier reading.
> 

Maybe later for this one...

Thanks,

-- 
Charles Clément

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux