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)
}
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)
......
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