o atm/mpc: fix up struct initialization

Fixes this:
net/atm/mpc.c:752: warning: braces around scalar initializer

Also converts it to C99 struct style initialization
parent c85db7d1
...@@ -736,23 +736,15 @@ static void mpc_push(struct atm_vcc *vcc, struct sk_buff *skb) ...@@ -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 */ static struct atmdev_ops mpc_ops = { /* only send is required */
.close =mpoad_close, .close = mpoad_close,
.send = msg_from_mpoad .send = msg_from_mpoad
}; };
static struct atm_dev mpc_dev = { static struct atm_dev mpc_dev = {
&mpc_ops, /* device operations */ .ops = &mpc_ops,
NULL, /* PHY operations */ .type = "mpc",
"mpc", /* device type name */ .number = 42,
42, /* device index (dummy) */ /* members not explicitely initialised will be 0 */
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 */
}; };
int atm_mpoa_mpoad_attach (struct atm_vcc *vcc, int arg) int atm_mpoa_mpoad_attach (struct atm_vcc *vcc, int arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment