Message ID | 20210624041316.567622-1-sukadev@linux.ibm.com |
---|---|
Headers | show |
Series | ibmvnic: Assorted bug fixes | expand |
On Wed, Jun 23, 2021 at 11:17 PM Sukadev Bhattiprolu <sukadev@linux.ibm.com> wrote: > > Parenthesize a check to be more explicit and to fix a sparse warning > seen on some distros. > > Fixes: 91dc5d2553fbf ("ibmvnic: fix miscellaneous checks") > Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com> > --- > drivers/net/ethernet/ibm/ibmvnic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c > index 363a5d5503ad..697b9714fc76 100644 > --- a/drivers/net/ethernet/ibm/ibmvnic.c > +++ b/drivers/net/ethernet/ibm/ibmvnic.c > @@ -3367,7 +3367,7 @@ static int enable_scrq_irq(struct ibmvnic_adapter *adapter, > /* H_EOI would fail with rc = H_FUNCTION when running > * in XIVE mode which is expected, but not an error. > */ > - if (rc && rc != H_FUNCTION) > + if (rc && (rc != H_FUNCTION)) It is unnecessary and this is not an issue with the latest sparse. Just curious what was the version on that distro?
Hello: This series was applied to netdev/net.git (refs/heads/master): On Wed, 23 Jun 2021 21:13:09 -0700 you wrote: > Assorted bug fixes that we tested over the last several weeks. > > Thanks to Brian King, Cris Forno, Dany Madden and Rick Lindsley for > reviews and help with testing. > > Dany Madden (1): > Revert "ibmvnic: remove duplicate napi_schedule call in open function" > > [...] Here is the summary with links: - [net,1/7] Revert "ibmvnic: simplify reset_long_term_buff function" https://git.kernel.org/netdev/net/c/0ec13aff058a - [net,2/7] Revert "ibmvnic: remove duplicate napi_schedule call in open function" https://git.kernel.org/netdev/net/c/2ca220f92878 - [net,3/7] ibmvnic: clean pending indirect buffs during reset https://git.kernel.org/netdev/net/c/65d6470d139a - [net,4/7] ibmvnic: account for bufs already saved in indir_buf https://git.kernel.org/netdev/net/c/72368f8b2b9e - [net,5/7] ibmvnic: set ltb->buff to NULL after freeing https://git.kernel.org/netdev/net/c/552a33729f1a - [net,6/7] ibmvnic: free tx_pool if tso_pool alloc fails https://git.kernel.org/netdev/net/c/f6ebca8efa52 - [net,7/7] ibmvnic: parenthesize a check https://git.kernel.org/netdev/net/c/154b3b2a6ffc You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html