net: fix DCB setstate to return success/failure
[deliverable/linux.git] / net / dcb / dcbnl.c
index a1254061629f55a1ed3b74cc0b0ac1848ecb9224..fc88fc4d4f63263f01c6d51295073273c11d7ae5 100644 (file)
@@ -714,9 +714,8 @@ static int dcbnl_setstate(struct net_device *netdev, struct nlattr **tb,
 
        value = nla_get_u8(tb[DCB_ATTR_STATE]);
 
-       netdev->dcbnl_ops->setstate(netdev, value);
-
-       ret = dcbnl_reply(0, RTM_SETDCB, DCB_CMD_SSTATE, DCB_ATTR_STATE,
+       ret = dcbnl_reply(netdev->dcbnl_ops->setstate(netdev, value),
+                         RTM_SETDCB, DCB_CMD_SSTATE, DCB_ATTR_STATE,
                          pid, seq, flags);
 
        return ret;
This page took 0.026235 seconds and 5 git commands to generate.