From: Ben Pfaff Date: Tue, 30 Dec 2008 18:25:29 +0000 (-0800) Subject: brcompat: Indentation fixups. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98391965b4a534fac178f819398327ba4c786dc1;p=openvswitch brcompat: Indentation fixups. In a few places four spaces were used in place of one tab. Elsewhere, function arguments weren't lined up well. --- diff --git a/datapath/brcompat.c b/datapath/brcompat.c index 5661240d..10dadd0e 100644 --- a/datapath/brcompat.c +++ b/datapath/brcompat.c @@ -96,7 +96,7 @@ static int brc_genl_query(struct sk_buff *skb, struct genl_info *info) return -ENOMEM; data = genlmsg_put_reply(ans_skb, info, &brc_genl_family, - 0, BRC_GENL_C_QUERY_MC); + 0, BRC_GENL_C_QUERY_MC); if (data == NULL) { err = -ENOMEM; goto err; @@ -131,10 +131,10 @@ int brc_send_dp_add_del(const char *dp_name, int add) if (add) data = genlmsg_put(skb, 0, 0, &brc_genl_family, 0, - BRC_GENL_C_DP_ADD); + BRC_GENL_C_DP_ADD); else data = genlmsg_put(skb, 0, 0, &brc_genl_family, 0, - BRC_GENL_C_DP_DEL); + BRC_GENL_C_DP_DEL); if (!data) goto err; @@ -160,10 +160,10 @@ int brc_send_port_add_del(const char *dp_name, const char *port_name, int add) if (add) data = genlmsg_put(skb, 0, 0, &brc_genl_family, 0, - BRC_GENL_C_PORT_ADD); + BRC_GENL_C_PORT_ADD); else data = genlmsg_put(skb, 0, 0, &brc_genl_family, 0, - BRC_GENL_C_PORT_DEL); + BRC_GENL_C_PORT_DEL); if (!data) goto err; @@ -189,8 +189,8 @@ __init brc_init(void) /* Set the bridge ioctl handler */ brioctl_set(brc_ioctl_deviceless_stub); - /* Set the OpenFlow device ioctl handler */ - dp_ioctl_hook = brc_dev_ioctl; + /* Set the OpenFlow device ioctl handler */ + dp_ioctl_hook = brc_dev_ioctl; /* Register generic netlink family to communicate changes to * userspace. */ @@ -217,8 +217,8 @@ err_unregister: static void brc_cleanup(void) { - /* Check refcount for datapaths so hook doesn't disappear? */ - dp_ioctl_hook = NULL; + /* Check refcount for datapaths so hook doesn't disappear? */ + dp_ioctl_hook = NULL; brioctl_set(NULL); genl_unregister_family(&brc_genl_family);