2017-06-07 20:42:08

by Gustavo A. R. Silva

[permalink] [raw]
Subject: [PATCH] IB/qib: remove duplicate code

Remove duplicate code.

Addresses-Coverity-ID: 1226951
Signed-off-by: Gustavo A. R. Silva <[email protected]>
---
drivers/infiniband/hw/qib/qib_mad.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/infiniband/hw/qib/qib_mad.c b/drivers/infiniband/hw/qib/qib_mad.c
index da295e0..c5eaa3c 100644
--- a/drivers/infiniband/hw/qib/qib_mad.c
+++ b/drivers/infiniband/hw/qib/qib_mad.c
@@ -874,8 +874,6 @@ static int subn_set_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
ib_dispatch_event(&event);
}

- ret = subn_get_portinfo(smp, ibdev, port);
-
/* restore re-reg bit per o14-12.2.1 */
pip->clientrereg_resv_subnetto |= clientrereg;

--
2.5.0


2017-06-08 10:37:56

by Leon Romanovsky

[permalink] [raw]
Subject: Re: [PATCH] IB/qib: remove duplicate code

On Wed, Jun 07, 2017 at 03:42:02PM -0500, Gustavo A. R. Silva wrote:
> Remove duplicate code.
>
> Addresses-Coverity-ID: 1226951
> Signed-off-by: Gustavo A. R. Silva <[email protected]>
> ---
> drivers/infiniband/hw/qib/qib_mad.c | 2 --
> 1 file changed, 2 deletions(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <[email protected]>


Attachments:
(No filename) (340.00 B)
signature.asc (833.00 B)
Download all attachments

2017-06-08 13:14:47

by Dennis Dalessandro

[permalink] [raw]
Subject: Re: [PATCH] IB/qib: remove duplicate code

On 6/7/2017 4:42 PM, Gustavo A. R. Silva wrote:
> Remove duplicate code.
>
> Addresses-Coverity-ID: 1226951
> Signed-off-by: Gustavo A. R. Silva <[email protected]>
> ---
> drivers/infiniband/hw/qib/qib_mad.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/infiniband/hw/qib/qib_mad.c b/drivers/infiniband/hw/qib/qib_mad.c
> index da295e0..c5eaa3c 100644
> --- a/drivers/infiniband/hw/qib/qib_mad.c
> +++ b/drivers/infiniband/hw/qib/qib_mad.c
> @@ -874,8 +874,6 @@ static int subn_set_portinfo(struct ib_smp *smp, struct ib_device *ibdev,
> ib_dispatch_event(&event);
> }
>
> - ret = subn_get_portinfo(smp, ibdev, port);
> -
> /* restore re-reg bit per o14-12.2.1 */
> pip->clientrereg_resv_subnetto |= clientrereg;
>
>

Would be nice to see a few more words in the commit message rather than
having to go look for Coverity.

Regardless, patch seems fine to me code wise.

Reviewed-by: Dennis Dalessandro <[email protected]>

2017-06-08 19:52:23

by Gustavo A. R. Silva

[permalink] [raw]
Subject: Re: [PATCH] IB/qib: remove duplicate code

Hi Dennis,

Quoting Dennis Dalessandro <[email protected]>:

> On 6/7/2017 4:42 PM, Gustavo A. R. Silva wrote:
>> Remove duplicate code.
>>
>> Addresses-Coverity-ID: 1226951
>> Signed-off-by: Gustavo A. R. Silva <[email protected]>
>> ---
>> drivers/infiniband/hw/qib/qib_mad.c | 2 --
>> 1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/infiniband/hw/qib/qib_mad.c
>> b/drivers/infiniband/hw/qib/qib_mad.c
>> index da295e0..c5eaa3c 100644
>> --- a/drivers/infiniband/hw/qib/qib_mad.c
>> +++ b/drivers/infiniband/hw/qib/qib_mad.c
>> @@ -874,8 +874,6 @@ static int subn_set_portinfo(struct ib_smp
>> *smp, struct ib_device *ibdev,
>> ib_dispatch_event(&event);
>> }
>> - ret = subn_get_portinfo(smp, ibdev, port);
>> -
>> /* restore re-reg bit per o14-12.2.1 */
>> pip->clientrereg_resv_subnetto |= clientrereg;
>>
>
> Would be nice to see a few more words in the commit message rather
> than having to go look for Coverity.
>

I'll take note of that.

> Regardless, patch seems fine to me code wise.
>
> Reviewed-by: Dennis Dalessandro <[email protected]>

Thank you
--
Gustavo A. R. Silva




2017-07-22 17:21:11

by Doug Ledford

[permalink] [raw]
Subject: Re: [PATCH] IB/qib: remove duplicate code

On 6/7/2017 4:42 PM, Gustavo A. R. Silva wrote:
> Remove duplicate code.
>
> Addresses-Coverity-ID: 1226951
> Signed-off-by: Gustavo A. R. Silva <[email protected]>

This patch was accepted into 4.13-rc, thanks.

In addition, I no longer have the original email for another patch of
yours that was also accepted into 4.13-rc. You created the patch in a
thread asking about the argument position for argument usage in
ib_init_ah_from_wc(). Your comment addition was accepted as well.


--
Doug Ledford <[email protected]>
GPG Key ID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD


Attachments:
signature.asc (884.00 B)
OpenPGP digital signature

2017-07-22 17:23:08

by Doug Ledford

[permalink] [raw]
Subject: Re: [PATCH] IB/qib: remove duplicate code

On 7/22/2017 1:20 PM, Doug Ledford wrote:
> On 6/7/2017 4:42 PM, Gustavo A. R. Silva wrote:
>> Remove duplicate code.
>>
>> Addresses-Coverity-ID: 1226951
>> Signed-off-by: Gustavo A. R. Silva <[email protected]>
>
> This patch was accepted into 4.13-rc, thanks.

Correction, this patch is in my queue for my for-next branch, only the
other patch, referenced below, made it into 4.13-rc.

> In addition, I no longer have the original email for another patch of
> yours that was also accepted into 4.13-rc. You created the patch in a
> thread asking about the argument position for argument usage in
> ib_init_ah_from_wc(). Your comment addition was accepted as well.
>
>


--
Doug Ledford <[email protected]>
GPG Key ID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD


Attachments:
signature.asc (884.00 B)
OpenPGP digital signature

2017-07-22 17:29:48

by Gustavo A. R. Silva

[permalink] [raw]
Subject: Re: [PATCH] IB/qib: remove duplicate code

Hi Doug,

On 07/22/2017 12:22 PM, Doug Ledford wrote:
> On 7/22/2017 1:20 PM, Doug Ledford wrote:
>> On 6/7/2017 4:42 PM, Gustavo A. R. Silva wrote:
>>> Remove duplicate code.
>>>
>>> Addresses-Coverity-ID: 1226951
>>> Signed-off-by: Gustavo A. R. Silva <[email protected]>
>>
>> This patch was accepted into 4.13-rc, thanks.
>
> Correction, this patch is in my queue for my for-next branch, only the
> other patch, referenced below, made it into 4.13-rc.
>

That's cool.

>> In addition, I no longer have the original email for another patch of
>> yours that was also accepted into 4.13-rc. You created the patch in a
>> thread asking about the argument position for argument usage in
>> ib_init_ah_from_wc(). Your comment addition was accepted as well.
>>
>>

Yeah, I noticed that. I'm glad to help out. :)

Thank you
--
Gustavo A. R. Silva