net: bonding: remove redudant brackets
authoryzhu1 <Yanjun.Zhu@windriver.com>
Thu, 3 Dec 2015 10:00:55 +0000 (18:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Dec 2015 05:07:14 +0000 (00:07 -0500)
It is not necessary to use two brackets. As such, the redudant brackets
are removed.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <gospo@cumulusnetworks.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c

index 5a7de43a09f8fb1e7d33e21db518812f1ce1baff..fe0e7a6f4d726d9271ec8e849bf72ea9f22915df 100644 (file)
@@ -1379,7 +1379,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
         * the current ifenslave will set the interface down prior to
         * enslaving it; the old ifenslave will not.
         */
-       if ((slave_dev->flags & IFF_UP)) {
+       if (slave_dev->flags & IFF_UP) {
                netdev_err(bond_dev, "%s is up - this may be due to an out of date ifenslave\n",
                           slave_dev->name);
                res = -EPERM;