Messages in this thread Patch in this message | | | Date | Thu, 20 Apr 2006 01:18:26 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] dvb-core: ULE fixes and RFC4326 additions (kernel 2.6.16) |
| |
Christian Praehauser <cpraehaus@cosy.sbg.ac.at> wrote: > > + static const u8 bc_addr[ETH_ALEN] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
There's a nicer way:
--- devel/drivers/media/dvb/dvb-core/dvb_net.c~dvb-core-ule-fixes-and-rfc4326-additions-kernel-2616-fix 2006-04-20 01:16:26.000000000 -0700 +++ devel-akpm/drivers/media/dvb/dvb-core/dvb_net.c 2006-04-20 01:17:29.000000000 -0700 @@ -639,7 +639,8 @@ static void dvb_net_ule( struct net_devi } else { /* CRC32 verified OK. */ u8 dest_addr[ETH_ALEN]; - static const u8 bc_addr[ETH_ALEN] = {0xFF,}; + static const u8 bc_addr[ETH_ALEN] = + { [ 0 ... ETH_ALEN-1] = 0xff }; /* CRC32 was OK. Remove it from skb. */ priv->ule_skb->tail -= 4; _ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |