[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DB5PR06MB1112E576BF6FFE240CB124C0DFA70@DB5PR06MB1112.eurprd06.prod.outlook.com>
Date: Tue, 16 Jun 2015 08:55:13 +0000
From: "Abdul, Hussain (H.)" <habdul@...teon.com>
To: Sudip Mukherjee <sudipm.mukherjee@...il.com>
CC: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
"Dighe, Niranjan (N.)" <ndighe@...teon.com>,
"chris.park@...el.com" <chris.park@...el.com>,
"Ravindran, Madhusudhanan (M.)" <mravindr@...teon.com>,
"linux-wireless@...r.kernel.org" <linux-wireless@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"johnny.kim@...el.com" <johnny.kim@...el.com>,
"rachel.kim@...el.com" <rachel.kim@...el.com>,
"dean.lee@...el.com" <dean.lee@...el.com>
Subject: Re: [PATCH] Staging: wilc1000: Boolean tests don't need comparisons
On Tuesday 16 June 2015 01:40 PM, Sudip Mukherjee wrote:
> On Tue, Jun 16, 2015 at 07:33:42AM +0000, Abdul, Hussain (H.) wrote:
>> From: Abdul Hussain <habdul@...teon.com>
>>
>> This patch removes unwanted true and false from boolean tests.
>>
>> Signed-off-by: Abdul Hussain <habdul@...teon.com>
>> ---
> <snip>
>> diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
>> index 17ab5cd..be1f6bf 100644
>> --- a/drivers/staging/wilc1000/host_interface.c
>> +++ b/drivers/staging/wilc1000/host_interface.c
>> @@ -7816,7 +7816,7 @@ static void *host_int_ParseJoinBssParam(tstrNetworkInfo *ptstrNetworkInfo)
>> pNewJoinBssParam->rsn_cap[1] = pu8IEs[rsnIndex + 1];
>> rsnIndex += 2;
>> }
>> - pNewJoinBssParam->rsn_found = 1;
>> + pNewJoinBssParam->rsn_found = true;
> But this is not a boolean test, this is an assignement.
>
> regards
> sudip
>
Sudip,
Yes that is an assignment to the boolean variable. Do i need to modify the commit message or to send separate patch?
Thanks,
Abdul
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists