brcompat: Indentation fixups.
authorBen Pfaff <blp@nicira.com>
Tue, 30 Dec 2008 18:25:29 +0000 (10:25 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 30 Dec 2008 18:25:29 +0000 (10:25 -0800)
In a few places four spaces were used in place of one tab. Elsewhere,
function arguments weren't lined up well.

datapath/brcompat.c

index 5661240d43992ee9457252bd7a0c8e82fe5d2fbd..10dadd0e13b5fc04d989e3e994d5e17845efb315 100644 (file)
@@ -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);