staging: rtl8188eu: remove unneeded conversions to bool
Patch suppresses the following warning issued by coccicheck: WARNING: conversion to bool not needed here Signed-off-by: Aishwarya Pant <aishpant@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5f5d08438c
commit
2169ea9b39
@ -707,7 +707,7 @@ static int issue_probereq_ex(struct adapter *padapter,
|
||||
unsigned long start = jiffies;
|
||||
|
||||
do {
|
||||
ret = issue_probereq(padapter, pssid, da, wait_ms > 0 ? true : false);
|
||||
ret = issue_probereq(padapter, pssid, da, wait_ms > 0);
|
||||
|
||||
i++;
|
||||
|
||||
@ -1283,7 +1283,7 @@ int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int pow
|
||||
da = pnetwork->MacAddress;
|
||||
|
||||
do {
|
||||
ret = _issue_nulldata(padapter, da, power_mode, wait_ms > 0 ? true : false);
|
||||
ret = _issue_nulldata(padapter, da, power_mode, wait_ms > 0);
|
||||
|
||||
i++;
|
||||
|
||||
@ -1410,7 +1410,7 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int
|
||||
da = pnetwork->MacAddress;
|
||||
|
||||
do {
|
||||
ret = _issue_qos_nulldata(padapter, da, tid, wait_ms > 0 ? true : false);
|
||||
ret = _issue_qos_nulldata(padapter, da, tid, wait_ms > 0);
|
||||
|
||||
i++;
|
||||
|
||||
@ -1517,7 +1517,7 @@ static int issue_deauth_ex(struct adapter *padapter, u8 *da,
|
||||
unsigned long start = jiffies;
|
||||
|
||||
do {
|
||||
ret = _issue_deauth(padapter, da, reason, wait_ms > 0 ? true : false);
|
||||
ret = _issue_deauth(padapter, da, reason, wait_ms > 0);
|
||||
|
||||
i++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user