All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c
@ 2015-12-01  0:09 Mario J. Rugiero
  2015-12-02 13:29 ` Dan Carpenter
  0 siblings, 1 reply; 8+ messages in thread
From: Mario J. Rugiero @ 2015-12-01  0:09 UTC (permalink / raw)
  To: devel
  Cc: mrugiero, gregkh, linux-wireless, johnny.kim, austin.shin,
	chris.park, tony.cho, glen.lee, leo.kim

This patch replaces an "if (ptr > 0)" comparison that seems to be a
confusing way to check for null by a simpler "if (ptr)" check.

Signed-off-by: Mario J. Rugiero <mrugiero@gmail.com>
---
 drivers/staging/wilc1000/host_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index d5b7725..0c87f6c 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -2270,7 +2270,7 @@ static void Handle_AddBeacon(struct host_if_drv *hif_drv,
 	*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 16) & 0xFF);
 	*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 24) & 0xFF);
 
-	if (pstrSetBeaconParam->tail > 0)
+	if (pstrSetBeaconParam->tail)
 		memcpy(pu8CurrByte, pstrSetBeaconParam->tail, pstrSetBeaconParam->tail_len);
 	pu8CurrByte += pstrSetBeaconParam->tail_len;
 
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c
  2015-12-01  0:09 [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c Mario J. Rugiero
@ 2015-12-02 13:29 ` Dan Carpenter
  2015-12-02 15:12   ` Mario J. Rugiero
  0 siblings, 1 reply; 8+ messages in thread
From: Dan Carpenter @ 2015-12-02 13:29 UTC (permalink / raw)
  To: Mario J. Rugiero
  Cc: devel, chris.park, austin.shin, gregkh, linux-wireless,
	johnny.kim, tony.cho, leo.kim

Put v2 in the subject.  Also the subsystem prefix is:

[PATCH v3] staging: wilc1000: ...

On Mon, Nov 30, 2015 at 09:09:04PM -0300, Mario J. Rugiero wrote:
> This patch replaces an "if (ptr > 0)" comparison that seems to be a
> confusing way to check for null by a simpler "if (ptr)" check.
> 
> Signed-off-by: Mario J. Rugiero <mrugiero@gmail.com>
> ---
v2: Remove the != NULL because checkpatch complains.

>  drivers/staging/wilc1000/host_interface.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
> index d5b7725..0c87f6c 100644
> --- a/drivers/staging/wilc1000/host_interface.c
> +++ b/drivers/staging/wilc1000/host_interface.c
> @@ -2270,7 +2270,7 @@ static void Handle_AddBeacon(struct host_if_drv *hif_drv,
>  	*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 16) & 0xFF);
>  	*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 24) & 0xFF);
>  
> -	if (pstrSetBeaconParam->tail > 0)
> +	if (pstrSetBeaconParam->tail)

Probably the intention was to check if "pstrSetBeaconParam->tail_len > 0"
but I'm not sure.  The wilc1000 maintainers are very responsive though
so maybe they will know for sure.

regards,
dan carpenter



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c
  2015-12-02 13:29 ` Dan Carpenter
@ 2015-12-02 15:12   ` Mario J. Rugiero
  2015-12-03  8:24     ` glen lee
  0 siblings, 1 reply; 8+ messages in thread
From: Mario J. Rugiero @ 2015-12-02 15:12 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: devel, chris.park, austin.shin, gregkh, linux-wireless,
	johnny.kim, tony.cho, leo.kim

OK. Since the maintainers are CC'd, I guess I should wait for a 
clarification about this?

El 02/12/15 a las 10:29, Dan Carpenter escribió:
> Put v2 in the subject.  Also the subsystem prefix is:
>
> [PATCH v3] staging: wilc1000: ...
>
> On Mon, Nov 30, 2015 at 09:09:04PM -0300, Mario J. Rugiero wrote:
>> This patch replaces an "if (ptr > 0)" comparison that seems to be a
>> confusing way to check for null by a simpler "if (ptr)" check.
>>
>> Signed-off-by: Mario J. Rugiero <mrugiero@gmail.com>
>> ---
> v2: Remove the != NULL because checkpatch complains.
>
>>   drivers/staging/wilc1000/host_interface.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
>> index d5b7725..0c87f6c 100644
>> --- a/drivers/staging/wilc1000/host_interface.c
>> +++ b/drivers/staging/wilc1000/host_interface.c
>> @@ -2270,7 +2270,7 @@ static void Handle_AddBeacon(struct host_if_drv *hif_drv,
>>   	*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 16) & 0xFF);
>>   	*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 24) & 0xFF);
>>   
>> -	if (pstrSetBeaconParam->tail > 0)
>> +	if (pstrSetBeaconParam->tail)
> Probably the intention was to check if "pstrSetBeaconParam->tail_len > 0"
> but I'm not sure.  The wilc1000 maintainers are very responsive though
> so maybe they will know for sure.
>
> regards,
> dan carpenter
>
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c
  2015-12-02 15:12   ` Mario J. Rugiero
@ 2015-12-03  8:24     ` glen lee
  2015-12-03 15:13       ` Mario J. Rugiero
  0 siblings, 1 reply; 8+ messages in thread
From: glen lee @ 2015-12-03  8:24 UTC (permalink / raw)
  To: Mario J. Rugiero, Dan Carpenter
  Cc: devel, chris.park, austin.shin, gregkh, linux-wireless,
	johnny.kim, tony.cho, leo.kim



On 2015년 12월 03일 00:12, Mario J. Rugiero wrote:
> OK. Since the maintainers are CC'd, I guess I should wait for a 
> clarification about this?

Hi Mario,

The purpose of that is to check if tail is null or not. if it is not null, there is tail
to send, so copy to buff.

regards,
glen lee.

>
> El 02/12/15 a las 10:29, Dan Carpenter escribió:
>> Put v2 in the subject.  Also the subsystem prefix is:
>>
>> [PATCH v3] staging: wilc1000: ...
>>
>> On Mon, Nov 30, 2015 at 09:09:04PM -0300, Mario J. Rugiero wrote:
>>> This patch replaces an "if (ptr > 0)" comparison that seems to be a
>>> confusing way to check for null by a simpler "if (ptr)" check.
>>>
>>> Signed-off-by: Mario J. Rugiero <mrugiero@gmail.com>
>>> ---
>> v2: Remove the != NULL because checkpatch complains.
>>
>>> drivers/staging/wilc1000/host_interface.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/staging/wilc1000/host_interface.c 
>>> b/drivers/staging/wilc1000/host_interface.c
>>> index d5b7725..0c87f6c 100644
>>> --- a/drivers/staging/wilc1000/host_interface.c
>>> +++ b/drivers/staging/wilc1000/host_interface.c
>>> @@ -2270,7 +2270,7 @@ static void Handle_AddBeacon(struct 
>>> host_if_drv *hif_drv,
>>>       *pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 16) & 0xFF);
>>>       *pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 24) & 0xFF);
>>>   -    if (pstrSetBeaconParam->tail > 0)
>>> +    if (pstrSetBeaconParam->tail)
>> Probably the intention was to check if "pstrSetBeaconParam->tail_len 
>> > 0"
>> but I'm not sure.  The wilc1000 maintainers are very responsive though
>> so maybe they will know for sure.
>>
>> regards,
>> dan carpenter
>>
>>
>
> _______________________________________________
> devel mailing list
> devel@linuxdriverproject.org
> http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c
  2015-12-03  8:24     ` glen lee
@ 2015-12-03 15:13       ` Mario J. Rugiero
  2015-12-03 15:17         ` Dan Carpenter
  0 siblings, 1 reply; 8+ messages in thread
From: Mario J. Rugiero @ 2015-12-03 15:13 UTC (permalink / raw)
  To: glen lee, Dan Carpenter
  Cc: devel, chris.park, austin.shin, gregkh, linux-wireless,
	johnny.kim, tony.cho, leo.kim

Thank you. Then the patch itself should see no changes as of now, am I 
right?
Should I submit a new one anyway to fix the subject line?

Regards,
Mario.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c
  2015-12-03 15:13       ` Mario J. Rugiero
@ 2015-12-03 15:17         ` Dan Carpenter
  2015-12-03 15:18           ` Mario J. Rugiero
  0 siblings, 1 reply; 8+ messages in thread
From: Dan Carpenter @ 2015-12-03 15:17 UTC (permalink / raw)
  To: Mario J. Rugiero
  Cc: glen lee, devel, chris.park, austin.shin, gregkh, linux-wireless,
	johnny.kim, tony.cho, leo.kim

On Thu, Dec 03, 2015 at 12:13:59PM -0300, Mario J. Rugiero wrote:
> Thank you. Then the patch itself should see no changes as of now, am
> I right?
> Should I submit a new one anyway to fix the subject line?

Yes, please.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c
  2015-12-03 15:17         ` Dan Carpenter
@ 2015-12-03 15:18           ` Mario J. Rugiero
  2015-12-03 15:21             ` Dan Carpenter
  0 siblings, 1 reply; 8+ messages in thread
From: Mario J. Rugiero @ 2015-12-03 15:18 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: glen lee, devel, chris.park, austin.shin, gregkh, linux-wireless,
	johnny.kim, tony.cho, leo.kim

Would be v3, or remains v2 because of the lack of further changes 
afterwards?

Regards,
Mario.

El 03/12/15 a las 12:17, Dan Carpenter escribió:
> On Thu, Dec 03, 2015 at 12:13:59PM -0300, Mario J. Rugiero wrote:
>> Thank you. Then the patch itself should see no changes as of now, am
>> I right?
>> Should I submit a new one anyway to fix the subject line?
> Yes, please.
>
> regards,
> dan carpenter
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c
  2015-12-03 15:18           ` Mario J. Rugiero
@ 2015-12-03 15:21             ` Dan Carpenter
  0 siblings, 0 replies; 8+ messages in thread
From: Dan Carpenter @ 2015-12-03 15:21 UTC (permalink / raw)
  To: Mario J. Rugiero
  Cc: devel, linux-wireless, chris.park, austin.shin, gregkh,
	johnny.kim, tony.cho, leo.kim

On Thu, Dec 03, 2015 at 12:18:34PM -0300, Mario J. Rugiero wrote:
> Would be v3, or remains v2 because of the lack of further changes
> afterwards?

Bump the version number.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-12-03 15:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-01  0:09 [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c Mario J. Rugiero
2015-12-02 13:29 ` Dan Carpenter
2015-12-02 15:12   ` Mario J. Rugiero
2015-12-03  8:24     ` glen lee
2015-12-03 15:13       ` Mario J. Rugiero
2015-12-03 15:17         ` Dan Carpenter
2015-12-03 15:18           ` Mario J. Rugiero
2015-12-03 15:21             ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.