@@ -2249,7 +2249,7 @@ static int wsa884x_swr_probe(struct swr_device *pdev)
goto err_mem;
}
- sys_gain_length = sys_gain_size / (2 * sizeof(u32));
+ sys_gain_length = sys_gain_size / sizeof(u32);
ret = of_property_read_u32_array(
wsa884x->macro_dev->dev.of_node,
"qcom,wsa-system-gains", wsa884x->sys_gains,