On Sat, Sep 12, 2015 at 04:35:30PM +0530, Shraddha Barke wrote:
> This patch removes comparisons to true/false values on bool variables.
> Fix made using Coccinelle
> 
> Changes in v2-
>  More instances covered
> 
> Signed-off-by: Shraddha Barke <[email protected]>
> ---
You have not even build tested before sending.
>  drivers/staging/rtl8712/rtl871x_ioctl_set.c | 24 ++++-----
>  drivers/staging/rtl8712/rtl871x_mlme.c      | 77 
> ++++++++++++++---------------
>  2 files changed, 50 insertions(+), 51 deletions(-)
<snip>  
> 
> @@ -1131,9 +1130,9 @@ int r8712_select_and_join_from_scan(struct mlme_priv 
> *pmlmepriv)
>       phead = &queue->queue;
>       pmlmepriv->pscanned = phead->next;
>       while (1) {
> -             if (end_of_queue_search(phead, pmlmepriv->pscanned) == true) {
> -                     if ((pmlmepriv->assoc_by_rssi == true) &&
> -                         (pnetwork_max_rssi != NULL)) {
> +             if (end_of_queue_search(phead, pmlmepriv->pscanned)) {
> +                     if ((pmlmepriv->assoc_by_rssi) &&
> +                         (pnetwork_max_rssi))
Coccinelle will not remove the opening brace.

And in one part of the patch one test for !=NULL was modified.

regards
sudip
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to