Commit ce1f2778 authored by Sara Sharon's avatar Sara Sharon Committed by Luca Coelho

iwlwifi: mvm: remove redundant alloc_ctx parameter

iwl_phy_db_set_section() is get called only from atomic
context, the alloc_ctx parameter is not needed. Remove it.
Signed-off-by: default avatarSara Sharon <sara.sharon@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 0ec84d1d
...@@ -221,8 +221,8 @@ void iwl_phy_db_free(struct iwl_phy_db *phy_db) ...@@ -221,8 +221,8 @@ void iwl_phy_db_free(struct iwl_phy_db *phy_db)
} }
IWL_EXPORT_SYMBOL(iwl_phy_db_free); IWL_EXPORT_SYMBOL(iwl_phy_db_free);
int iwl_phy_db_set_section(struct iwl_phy_db *phy_db, struct iwl_rx_packet *pkt, int iwl_phy_db_set_section(struct iwl_phy_db *phy_db,
gfp_t alloc_ctx) struct iwl_rx_packet *pkt)
{ {
struct iwl_calib_res_notif_phy_db *phy_db_notif = struct iwl_calib_res_notif_phy_db *phy_db_notif =
(struct iwl_calib_res_notif_phy_db *)pkt->data; (struct iwl_calib_res_notif_phy_db *)pkt->data;
...@@ -269,7 +269,7 @@ int iwl_phy_db_set_section(struct iwl_phy_db *phy_db, struct iwl_rx_packet *pkt, ...@@ -269,7 +269,7 @@ int iwl_phy_db_set_section(struct iwl_phy_db *phy_db, struct iwl_rx_packet *pkt,
return -EINVAL; return -EINVAL;
kfree(entry->data); kfree(entry->data);
entry->data = kmemdup(phy_db_notif->data, size, alloc_ctx); entry->data = kmemdup(phy_db_notif->data, size, GFP_ATOMIC);
if (!entry->data) { if (!entry->data) {
entry->size = 0; entry->size = 0;
return -ENOMEM; return -ENOMEM;
......
...@@ -73,8 +73,8 @@ struct iwl_phy_db *iwl_phy_db_init(struct iwl_trans *trans); ...@@ -73,8 +73,8 @@ struct iwl_phy_db *iwl_phy_db_init(struct iwl_trans *trans);
void iwl_phy_db_free(struct iwl_phy_db *phy_db); void iwl_phy_db_free(struct iwl_phy_db *phy_db);
int iwl_phy_db_set_section(struct iwl_phy_db *phy_db, struct iwl_rx_packet *pkt, int iwl_phy_db_set_section(struct iwl_phy_db *phy_db,
gfp_t alloc_ctx); struct iwl_rx_packet *pkt);
int iwl_send_phy_db_data(struct iwl_phy_db *phy_db); int iwl_send_phy_db_data(struct iwl_phy_db *phy_db);
......
...@@ -535,7 +535,7 @@ static bool iwl_wait_phy_db_entry(struct iwl_notif_wait_data *notif_wait, ...@@ -535,7 +535,7 @@ static bool iwl_wait_phy_db_entry(struct iwl_notif_wait_data *notif_wait,
return true; return true;
} }
WARN_ON(iwl_phy_db_set_section(phy_db, pkt, GFP_ATOMIC)); WARN_ON(iwl_phy_db_set_section(phy_db, pkt));
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment