Add missing returns so that the memzone free is not called if
port create is successful.
Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
Reviewed-by: Mike Ximing Chen <mike.ximing.chen@intel.com>
*(struct dlb_cmd_response *)cfg->response = response;
DLB_INFO(dev->dlb_device, "Exiting %s() with ret=%d\n", __func__, ret);
+ return 0;
create_port_err:
*(struct dlb_cmd_response *)cfg->response = response;
DLB_INFO(dev->dlb_device, "Exiting %s() with ret=%d\n", __func__, ret);
+ return 0;
create_port_err: