|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2018 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
@@ -35,10 +35,8 @@ static QDF_STATUS
|
|
|
ftm_pdev_obj_init(struct wifi_ftm_pdev_priv_obj *ftm_pdev_obj)
|
|
|
{
|
|
|
ftm_pdev_obj->data = qdf_mem_malloc(FTM_CMD_MAX_BUF_LENGTH);
|
|
|
- if (!ftm_pdev_obj->data) {
|
|
|
- ftm_err("Memory alloc failed for ftm pdev obj data");
|
|
|
+ if (!ftm_pdev_obj->data)
|
|
|
return QDF_STATUS_E_NOMEM;
|
|
|
- }
|
|
|
|
|
|
ftm_pdev_obj->length = 0;
|
|
|
|
|
@@ -55,10 +53,8 @@ wlan_ftm_pdev_obj_create_notification(struct wlan_objmgr_pdev *pdev,
|
|
|
|
|
|
ftm_pdev_obj = qdf_mem_malloc(sizeof(*ftm_pdev_obj));
|
|
|
|
|
|
- if (!ftm_pdev_obj) {
|
|
|
- ftm_err("Memory alloc failed for ftm pdev obj");
|
|
|
+ if (!ftm_pdev_obj)
|
|
|
return QDF_STATUS_E_NOMEM;
|
|
|
- }
|
|
|
|
|
|
ftm_pdev_obj->pdev = pdev;
|
|
|
status = ftm_pdev_obj_init(ftm_pdev_obj);
|