All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] ibmvnic: add missing parenthesis in do_reset()
@ 2020-09-05  4:07 Jakub Kicinski
  2020-09-07 21:07 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2020-09-05  4:07 UTC (permalink / raw)
  To: davem; +Cc: netdev, Jakub Kicinski, mmc, drt, tlfalcon, jallen

Indentation and logic clearly show that this code is missing
parenthesis.

Fixes: 9f1345737790 ("ibmvnic fix NULL tx_pools and rx_tools issue at do_reset")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: mmc@linux.vnet.ibm.com
CC: drt@linux.ibm.com
CC: tlfalcon@linux.ibm.com
CC: jallen@linux.ibm.com

I randomly noticed this when doing a net -> net-next merge.

Folks, please: (a) make more of an effort testing your code, especially
for fixes!, and (b) try making your code COMPILE_TEST-able, I'm 100% sure
buildbot would've caught this immediately if it wasn't for the arch
dependency.

 drivers/net/ethernet/ibm/ibmvnic.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index d3a774331afc..1b702a43a5d0 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.c
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
@@ -2032,16 +2032,18 @@ static int do_reset(struct ibmvnic_adapter *adapter,
 
 		} else {
 			rc = reset_tx_pools(adapter);
-			if (rc)
+			if (rc) {
 				netdev_dbg(adapter->netdev, "reset tx pools failed (%d)\n",
 						rc);
 				goto out;
+			}
 
 			rc = reset_rx_pools(adapter);
-			if (rc)
+			if (rc) {
 				netdev_dbg(adapter->netdev, "reset rx pools failed (%d)\n",
 						rc);
 				goto out;
+			}
 		}
 		ibmvnic_disable_irqs(adapter);
 	}
-- 
2.26.2


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

* Re: [PATCH net] ibmvnic: add missing parenthesis in do_reset()
  2020-09-05  4:07 [PATCH net] ibmvnic: add missing parenthesis in do_reset() Jakub Kicinski
@ 2020-09-07 21:07 ` Jakub Kicinski
  2020-09-09 18:10   ` Thomas Falcon
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2020-09-07 21:07 UTC (permalink / raw)
  To: davem; +Cc: netdev, mmc, drt, tlfalcon, jallen

On Fri,  4 Sep 2020 21:07:49 -0700 Jakub Kicinski wrote:
> Indentation and logic clearly show that this code is missing
> parenthesis.
> 
> Fixes: 9f1345737790 ("ibmvnic fix NULL tx_pools and rx_tools issue at do_reset")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Applied now.

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

* Re: [PATCH net] ibmvnic: add missing parenthesis in do_reset()
  2020-09-07 21:07 ` Jakub Kicinski
@ 2020-09-09 18:10   ` Thomas Falcon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Falcon @ 2020-09-09 18:10 UTC (permalink / raw)
  To: Jakub Kicinski, davem; +Cc: netdev, mmc, drt, jallen


On 9/7/20 4:07 PM, Jakub Kicinski wrote:
> On Fri,  4 Sep 2020 21:07:49 -0700 Jakub Kicinski wrote:
>> Indentation and logic clearly show that this code is missing
>> parenthesis.
>>
>> Fixes: 9f1345737790 ("ibmvnic fix NULL tx_pools and rx_tools issue at do_reset")
>> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> Applied now.
Thanks for noticing that!

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

end of thread, other threads:[~2020-09-09 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-05  4:07 [PATCH net] ibmvnic: add missing parenthesis in do_reset() Jakub Kicinski
2020-09-07 21:07 ` Jakub Kicinski
2020-09-09 18:10   ` Thomas Falcon

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.