2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

netdev-dpdk: Coding style improvements.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
This commit is contained in:
Ben Pfaff
2014-06-24 08:54:56 -07:00
parent 4216511999
commit 451450fa4b

View File

@@ -832,7 +832,6 @@ netdev_dpdk_set_mtu(const struct netdev *netdev, int mtu)
err = dpdk_eth_dev_init(dev);
if (err) {
dpdk_mp_put(mp);
dev->mtu = old_mtu;
dev->dpdk_mp = old_mp;
@@ -1241,14 +1240,16 @@ dpdk_init(int argc, char **argv)
/* Make sure things are initialized ... */
result = rte_eal_init(argc, argv);
if (result < 0)
if (result < 0) {
ovs_abort(result, "Cannot init EAL\n");
}
rte_memzone_dump();
rte_eal_init_ret = 0;
if (argc > result)
if (argc > result) {
argv[result] = argv[0];
}
return result + 1;
}