Commit e3108132 authored by zhong jiang's avatar zhong jiang Committed by Kalle Valo

ipw2x00: Remove redundant variable "rc"

local variable "rc" is not used. It is safe to remove and
There is only one caller of libipw_qos_convert_ac_to_parameters().
hence make it void
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 83e3a672
...@@ -999,13 +999,12 @@ static int libipw_read_qos_info_element(struct ...@@ -999,13 +999,12 @@ static int libipw_read_qos_info_element(struct
/* /*
* Write QoS parameters from the ac parameters. * Write QoS parameters from the ac parameters.
*/ */
static int libipw_qos_convert_ac_to_parameters(struct static void libipw_qos_convert_ac_to_parameters(struct
libipw_qos_parameter_info libipw_qos_parameter_info
*param_elm, struct *param_elm, struct
libipw_qos_parameters libipw_qos_parameters
*qos_param) *qos_param)
{ {
int rc = 0;
int i; int i;
struct libipw_qos_ac_parameter *ac_params; struct libipw_qos_ac_parameter *ac_params;
u32 txop; u32 txop;
...@@ -1030,7 +1029,6 @@ static int libipw_qos_convert_ac_to_parameters(struct ...@@ -1030,7 +1029,6 @@ static int libipw_qos_convert_ac_to_parameters(struct
txop = le16_to_cpu(ac_params->tx_op_limit) * 32; txop = le16_to_cpu(ac_params->tx_op_limit) * 32;
qos_param->tx_op_limit[i] = cpu_to_le16(txop); qos_param->tx_op_limit[i] = cpu_to_le16(txop);
} }
return rc;
} }
/* /*
......
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