mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "cnss2: Fix for static analysis issue"
This commit is contained in:
commit
d1d8422b47
1 changed files with 4 additions and 1 deletions
|
|
@ -2106,6 +2106,10 @@ static int cnss_register_bus_scale(struct cnss_plat_data *plat_priv)
|
|||
bus_bw_info->cfg_table = kcalloc(bus_bw_info->num_cfg,
|
||||
sizeof(*bus_bw_info->cfg_table),
|
||||
GFP_KERNEL);
|
||||
if (!bus_bw_info->cfg_table) {
|
||||
cnss_pr_err("No mem for Bus BW config table\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
for (i = 0, j = 0; i < bus_bw_info->num_cfg; i++, j += 2) {
|
||||
bus_bw_info->cfg_table[i].ab = be32_to_cpu(cfg_arr[j]);
|
||||
bus_bw_info->cfg_table[i].ib = be32_to_cpu(cfg_arr[j + 1]);
|
||||
|
|
@ -2113,7 +2117,6 @@ static int cnss_register_bus_scale(struct cnss_plat_data *plat_priv)
|
|||
i, bus_bw_info->cfg_table[i].ab,
|
||||
bus_bw_info->cfg_table[i].ib);
|
||||
}
|
||||
|
||||
return 0;
|
||||
out:
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue