Skip to content

Commit

Permalink
staging: rtl8192e: Replace ?: with max_t
Browse files Browse the repository at this point in the history
Improve readability and make checkpatch happy.

Signed-off-by: Mateusz Kulikowski <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
hallor authored and gregkh committed May 31, 2015
1 parent 2b2215a commit a94aa9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtllib_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ static int rtllib_qos_convert_ac_to_parameters(struct rtllib_qos_parameter_info
qos_param->aifs[aci] = (ac_params->aci_aifsn) & 0x0f;

/* WMM spec P.11: The minimum value for AIFSN shall be 2 */
qos_param->aifs[aci] = (qos_param->aifs[aci] < 2) ? 2 : qos_param->aifs[aci];
qos_param->aifs[aci] = max_t(u8, qos_param->aifs[aci], 2);

qos_param->cw_min[aci] = cpu_to_le16(ac_params->ecw_min_max &
0x0F);
Expand Down

0 comments on commit a94aa9a

Please sign in to comment.