]> git.hungrycats.org Git - linux/commitdiff
o atm/mpc: fix up struct initialization
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>
Sat, 7 Dec 2002 13:03:30 +0000 (11:03 -0200)
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>
Sat, 7 Dec 2002 13:03:30 +0000 (11:03 -0200)
Fixes this:
net/atm/mpc.c:752: warning: braces around scalar initializer

Also converts it to C99 struct style initialization

net/atm/mpc.c

index 15cc0f2184d46fd37b3e1dda984a13405bfe07cb..911c3c0da473ce6af0a72ed70a93b39d23e21e60 100644 (file)
@@ -736,23 +736,15 @@ static void mpc_push(struct atm_vcc *vcc, struct sk_buff *skb)
 }
 
 static struct atmdev_ops mpc_ops = { /* only send is required */
-       .close =mpoad_close,
-       .send = msg_from_mpoad
+       .close  = mpoad_close,
+       .send   = msg_from_mpoad
 };
 
 static struct atm_dev mpc_dev = {
-       &mpc_ops,       /* device operations    */
-       NULL,           /* PHY operations       */
-       "mpc",          /* device type name     */
-       42,             /* device index (dummy) */
-       NULL,           /* VCC table            */
-       NULL,           /* last VCC             */
-       NULL,           /* per-device data      */
-       NULL,           /* private PHY data     */
-       { 0 },          /* device flags         */
-       NULL,           /* local ATM address    */
-       { 0 }           /* no ESI               */
-       /* rest of the members will be 0 */
+       .ops    = &mpc_ops,
+       .type   = "mpc",
+       .number = 42,
+       /* members not explicitely initialised will be 0 */
 };
 
 int atm_mpoa_mpoad_attach (struct atm_vcc *vcc, int arg)