event/dlb: skip memzone freeing if port created
authorTimothy McDaniel <timothy.mcdaniel@intel.com>
Wed, 11 Nov 2020 20:27:01 +0000 (14:27 -0600)
committerJerin Jacob <jerinj@marvell.com>
Thu, 12 Nov 2020 18:00:52 +0000 (19:00 +0100)
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>
drivers/event/dlb/pf/dlb_pf.c

index cf88c49..3aeef6f 100644 (file)
@@ -342,6 +342,7 @@ dlb_pf_ldb_port_create(struct dlb_hw_dev *handle,
        *(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:
 
@@ -419,6 +420,7 @@ dlb_pf_dir_port_create(struct dlb_hw_dev *handle,
        *(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: