diff mbox series

[06/25] soc: ti: knav_qmss_queue: Remove set but unchecked variable 'ret'

Message ID 20201103152838.1290217-7-lee.jones@linaro.org (mailing list archive)
State New, archived
Headers show
Series Rid W=1 warnings in SoC | expand

Commit Message

Lee Jones Nov. 3, 2020, 3:28 p.m. UTC
Fixes the following W=1 kernel build warning(s):

 drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
 drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Cc: Santosh Shilimkar <ssantosh@kernel.org>
Cc: Sandeep Nair <sandeep_n@ti.com>
Cc: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 drivers/soc/ti/knav_qmss_queue.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Lee Jones Nov. 12, 2020, 10:31 a.m. UTC | #1
Cc:ing a few people I know.

On Tue, 03 Nov 2020, Lee Jones wrote:

> Fixes the following W=1 kernel build warning(s):
> 
>  drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
>  drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
> 
> Cc: Santosh Shilimkar <ssantosh@kernel.org>
> Cc: Sandeep Nair <sandeep_n@ti.com>
> Cc: Cyril Chemparathy <cyril@ti.com>
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
>  drivers/soc/ti/knav_qmss_queue.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Any idea who will take these TI patches?

https://lore.kernel.org/linux-arm-kernel/20201111052540.GH173948@builder.lan/
Tero Kristo Nov. 12, 2020, 12:25 p.m. UTC | #2
On 12/11/2020 12:31, Lee Jones wrote:
> Cc:ing a few people I know.
> 
> On Tue, 03 Nov 2020, Lee Jones wrote:
> 
>> Fixes the following W=1 kernel build warning(s):
>>
>>   drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
>>   drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
>>
>> Cc: Santosh Shilimkar <ssantosh@kernel.org>
>> Cc: Sandeep Nair <sandeep_n@ti.com>
>> Cc: Cyril Chemparathy <cyril@ti.com>
>> Signed-off-by: Lee Jones <lee.jones@linaro.org>
>> ---
>>   drivers/soc/ti/knav_qmss_queue.c | 3 +--
>>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> Any idea who will take these TI patches?
> 
> https://lore.kernel.org/linux-arm-kernel/20201111052540.GH173948@builder.lan/
> 

(Dropped a few inactive emails from delivery.)

Santosh is the maintainer for the subsystem, so my vote would go for him.

-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Lee Jones Nov. 12, 2020, 1:21 p.m. UTC | #3
On Thu, 12 Nov 2020, Tero Kristo wrote:

> On 12/11/2020 12:31, Lee Jones wrote:
> > Cc:ing a few people I know.
> > 
> > On Tue, 03 Nov 2020, Lee Jones wrote:
> > 
> > > Fixes the following W=1 kernel build warning(s):
> > > 
> > >   drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
> > >   drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
> > > 
> > > Cc: Santosh Shilimkar <ssantosh@kernel.org>
> > > Cc: Sandeep Nair <sandeep_n@ti.com>
> > > Cc: Cyril Chemparathy <cyril@ti.com>
> > > Signed-off-by: Lee Jones <lee.jones@linaro.org>
> > > ---
> > >   drivers/soc/ti/knav_qmss_queue.c | 3 +--
> > >   1 file changed, 1 insertion(+), 2 deletions(-)
> > 
> > Any idea who will take these TI patches?
> > 
> > https://lore.kernel.org/linux-arm-kernel/20201111052540.GH173948@builder.lan/
> > 
> 
> (Dropped a few inactive emails from delivery.)
> 
> Santosh is the maintainer for the subsystem, so my vote would go for him.

Thanks for your prompt reply Tero.

It looks as though Santosh has been on Cc since the start.  He must
just be busy.  I'll give him a little while longer before submitting a
[RESEND].
Tero Kristo Nov. 12, 2020, 1:33 p.m. UTC | #4
On 12/11/2020 15:21, Lee Jones wrote:
> On Thu, 12 Nov 2020, Tero Kristo wrote:
> 
>> On 12/11/2020 12:31, Lee Jones wrote:
>>> Cc:ing a few people I know.
>>>
>>> On Tue, 03 Nov 2020, Lee Jones wrote:
>>>
>>>> Fixes the following W=1 kernel build warning(s):
>>>>
>>>>    drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
>>>>    drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
>>>>
>>>> Cc: Santosh Shilimkar <ssantosh@kernel.org>
>>>> Cc: Sandeep Nair <sandeep_n@ti.com>
>>>> Cc: Cyril Chemparathy <cyril@ti.com>
>>>> Signed-off-by: Lee Jones <lee.jones@linaro.org>
>>>> ---
>>>>    drivers/soc/ti/knav_qmss_queue.c | 3 +--
>>>>    1 file changed, 1 insertion(+), 2 deletions(-)
>>>
>>> Any idea who will take these TI patches?
>>>
>>> https://lore.kernel.org/linux-arm-kernel/20201111052540.GH173948@builder.lan/
>>>
>>
>> (Dropped a few inactive emails from delivery.)
>>
>> Santosh is the maintainer for the subsystem, so my vote would go for him.
> 
> Thanks for your prompt reply Tero.
> 
> It looks as though Santosh has been on Cc since the start.  He must
> just be busy.  I'll give him a little while longer before submitting a
> [RESEND].

Yeah, in my experience it can take a while for Santosh to react on 
patches. :)

-Tero


--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Santosh Shilimkar Nov. 12, 2020, 5:50 p.m. UTC | #5
On 11/12/20 5:21 AM, Lee Jones wrote:
> On Thu, 12 Nov 2020, Tero Kristo wrote:
> 
>> On 12/11/2020 12:31, Lee Jones wrote:
>>> Cc:ing a few people I know.
>>>
>>> On Tue, 03 Nov 2020, Lee Jones wrote:
>>>
>>>> Fixes the following W=1 kernel build warning(s):
>>>>
>>>>    drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
>>>>    drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
>>>>
>>>> Cc: Santosh Shilimkar <ssantosh@kernel.org>
>>>> Cc: Sandeep Nair <sandeep_n@ti.com>
>>>> Cc: Cyril Chemparathy <cyril@ti.com>
>>>> Signed-off-by: Lee Jones <lee.jones@linaro.org>
>>>> ---
>>>>    drivers/soc/ti/knav_qmss_queue.c | 3 +--
>>>>    1 file changed, 1 insertion(+), 2 deletions(-)
>>>
>>> Any idea who will take these TI patches?
>>>
>>> https://urldefense.com/v3/__https://lore.kernel.org/linux-arm-kernel/20201111052540.GH173948@builder.lan/__;!!GqivPVa7Brio!KEeMCT-GwmLNnDFCOqxnunXXiCrCpj3ZFXpiMzj55VmlOJ-FVhKmom-O7sq-CkL8s0sjAg$
>>>
>>
>> (Dropped a few inactive emails from delivery.)
>>
>> Santosh is the maintainer for the subsystem, so my vote would go for him.
> 
> Thanks for your prompt reply Tero.
> 
> It looks as though Santosh has been on Cc since the start.  He must
> just be busy.  I'll give him a little while longer before submitting a
> [RESEND].
> 
Go ahead and re-post. These seems to be trivial so will pick
it up.

Regards,
Santosh
Lee Jones Nov. 12, 2020, 7:02 p.m. UTC | #6
On Thu, 12 Nov 2020, santosh.shilimkar@oracle.com wrote:

> On 11/12/20 5:21 AM, Lee Jones wrote:
> > On Thu, 12 Nov 2020, Tero Kristo wrote:
> > 
> > > On 12/11/2020 12:31, Lee Jones wrote:
> > > > Cc:ing a few people I know.
> > > > 
> > > > On Tue, 03 Nov 2020, Lee Jones wrote:
> > > > 
> > > > > Fixes the following W=1 kernel build warning(s):
> > > > > 
> > > > >    drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
> > > > >    drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
> > > > > 
> > > > > Cc: Santosh Shilimkar <ssantosh@kernel.org>
> > > > > Cc: Sandeep Nair <sandeep_n@ti.com>
> > > > > Cc: Cyril Chemparathy <cyril@ti.com>
> > > > > Signed-off-by: Lee Jones <lee.jones@linaro.org>
> > > > > ---
> > > > >    drivers/soc/ti/knav_qmss_queue.c | 3 +--
> > > > >    1 file changed, 1 insertion(+), 2 deletions(-)
> > > > 
> > > > Any idea who will take these TI patches?
> > > > 
> > > > https://urldefense.com/v3/__https://lore.kernel.org/linux-arm-kernel/20201111052540.GH173948@builder.lan/__;!!GqivPVa7Brio!KEeMCT-GwmLNnDFCOqxnunXXiCrCpj3ZFXpiMzj55VmlOJ-FVhKmom-O7sq-CkL8s0sjAg$
> > > > 
> > > 
> > > (Dropped a few inactive emails from delivery.)
> > > 
> > > Santosh is the maintainer for the subsystem, so my vote would go for him.
> > 
> > Thanks for your prompt reply Tero.
> > 
> > It looks as though Santosh has been on Cc since the start.  He must
> > just be busy.  I'll give him a little while longer before submitting a
> > [RESEND].
> > 
> Go ahead and re-post. These seems to be trivial so will pick
> it up.

If you are in receipt of the first iteration, there shouldn't be any
requirement for a [RESEND].  Unless you deleted them from your inbox?
Santosh Shilimkar Nov. 12, 2020, 7:47 p.m. UTC | #7
On 11/12/20 11:02 AM, Lee Jones wrote:
> On Thu, 12 Nov 2020, santosh.shilimkar@oracle.com wrote:
> 
>> On 11/12/20 5:21 AM, Lee Jones wrote:
>>> On Thu, 12 Nov 2020, Tero Kristo wrote:
>>>
>>>> On 12/11/2020 12:31, Lee Jones wrote:
>>>>> Cc:ing a few people I know.
>>>>>
>>>>> On Tue, 03 Nov 2020, Lee Jones wrote:
>>>>>
>>>>>> Fixes the following W=1 kernel build warning(s):
>>>>>>
>>>>>>     drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
>>>>>>     drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
>>>>>>
>>>>>> Cc: Santosh Shilimkar <ssantosh@kernel.org>
>>>>>> Cc: Sandeep Nair <sandeep_n@ti.com>
>>>>>> Cc: Cyril Chemparathy <cyril@ti.com>
>>>>>> Signed-off-by: Lee Jones <lee.jones@linaro.org>
>>>>>> ---
>>>>>>     drivers/soc/ti/knav_qmss_queue.c | 3 +--
>>>>>>     1 file changed, 1 insertion(+), 2 deletions(-)
>>>>>
>>>>> Any idea who will take these TI patches?
>>>>>
>>>>> https://urldefense.com/v3/__https://lore.kernel.org/linux-arm-kernel/20201111052540.GH173948@builder.lan/__;!!GqivPVa7Brio!KEeMCT-GwmLNnDFCOqxnunXXiCrCpj3ZFXpiMzj55VmlOJ-FVhKmom-O7sq-CkL8s0sjAg$
>>>>>
>>>>
>>>> (Dropped a few inactive emails from delivery.)
>>>>
>>>> Santosh is the maintainer for the subsystem, so my vote would go for him.
>>>
>>> Thanks for your prompt reply Tero.
>>>
>>> It looks as though Santosh has been on Cc since the start.  He must
>>> just be busy.  I'll give him a little while longer before submitting a
>>> [RESEND].
>>>
>> Go ahead and re-post. These seems to be trivial so will pick
>> it up.
> 
> If you are in receipt of the first iteration, there shouldn't be any
> requirement for a [RESEND].  Unless you deleted them from your inbox?
> 
I haven't deleted anything. I thought you are going to repost based
on "I'll give him a little while longer before submitting a [RESEND]"
:-)

Regards,
Santosh


Regards,
Santosh
Lee Jones Nov. 12, 2020, 8:07 p.m. UTC | #8
On Thu, 12 Nov 2020, santosh.shilimkar@oracle.com wrote:

> On 11/12/20 11:02 AM, Lee Jones wrote:
> > On Thu, 12 Nov 2020, santosh.shilimkar@oracle.com wrote:
> > 
> > > On 11/12/20 5:21 AM, Lee Jones wrote:
> > > > On Thu, 12 Nov 2020, Tero Kristo wrote:
> > > > 
> > > > > On 12/11/2020 12:31, Lee Jones wrote:
> > > > > > Cc:ing a few people I know.
> > > > > > 
> > > > > > On Tue, 03 Nov 2020, Lee Jones wrote:
> > > > > > 
> > > > > > > Fixes the following W=1 kernel build warning(s):
> > > > > > > 
> > > > > > >     drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
> > > > > > >     drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
> > > > > > > 
> > > > > > > Cc: Santosh Shilimkar <ssantosh@kernel.org>
> > > > > > > Cc: Sandeep Nair <sandeep_n@ti.com>
> > > > > > > Cc: Cyril Chemparathy <cyril@ti.com>
> > > > > > > Signed-off-by: Lee Jones <lee.jones@linaro.org>
> > > > > > > ---
> > > > > > >     drivers/soc/ti/knav_qmss_queue.c | 3 +--
> > > > > > >     1 file changed, 1 insertion(+), 2 deletions(-)
> > > > > > 
> > > > > > Any idea who will take these TI patches?
> > > > > > 
> > > > > > https://urldefense.com/v3/__https://lore.kernel.org/linux-arm-kernel/20201111052540.GH173948@builder.lan/__;!!GqivPVa7Brio!KEeMCT-GwmLNnDFCOqxnunXXiCrCpj3ZFXpiMzj55VmlOJ-FVhKmom-O7sq-CkL8s0sjAg$
> > > > > > 
> > > > > 
> > > > > (Dropped a few inactive emails from delivery.)
> > > > > 
> > > > > Santosh is the maintainer for the subsystem, so my vote would go for him.
> > > > 
> > > > Thanks for your prompt reply Tero.
> > > > 
> > > > It looks as though Santosh has been on Cc since the start.  He must
> > > > just be busy.  I'll give him a little while longer before submitting a
> > > > [RESEND].
> > > > 
> > > Go ahead and re-post. These seems to be trivial so will pick
> > > it up.
> > 
> > If you are in receipt of the first iteration, there shouldn't be any
> > requirement for a [RESEND].  Unless you deleted them from your inbox?
> > 
> I haven't deleted anything. I thought you are going to repost based
> on "I'll give him a little while longer before submitting a [RESEND]"
> :-)

A [RESEND] is a tactic employed due to lack of response.

Usually because the original set has slipped through the gaps.

If you find the patches adequate and you still have them in your
possession, please feel free to merge them. :)
diff mbox series

Patch

diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
index a460f201bf8e7..f36c2dcb26911 100644
--- a/drivers/soc/ti/knav_qmss_queue.c
+++ b/drivers/soc/ti/knav_qmss_queue.c
@@ -1307,12 +1307,11 @@  static int knav_setup_queue_pools(struct knav_device *kdev,
 				   struct device_node *queue_pools)
 {
 	struct device_node *type, *range;
-	int ret;
 
 	for_each_child_of_node(queue_pools, type) {
 		for_each_child_of_node(type, range) {
-			ret = knav_setup_queue_range(kdev, range);
 			/* return value ignored, we init the rest... */
+			knav_setup_queue_range(kdev, range);
 		}
 	}