Re: [PATCH] dvb-core: ULE fixes and RFC4326 additions (kernel2.6.16)

From: Andrew Morton
Date: Thu Apr 20 2006 - 04:19:16 EST


Christian Praehauser <cpraehaus@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/