* [patch] i40e: remove an unneeded check
@ 2014-03-28 8:29 Dan Carpenter
2014-03-28 14:13 ` Jeff Kirsher
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Dan Carpenter @ 2014-03-28 8:29 UTC (permalink / raw)
To: kernel-janitors
We know "ret" is zero here. No need to check again.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index 28da412..2640004 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -1534,12 +1534,12 @@ static int i40e_add_del_fdir_ethtool(struct i40e_vsi *vsi,
return ret;
}
- if (!ret && add)
+ if (add)
i40e_update_ethtool_fdir_entry(vsi, input, fsp->location, NULL);
else
kfree(input);
- return ret;
+ return 0;
}
/**
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [patch] i40e: remove an unneeded check
2014-03-28 8:29 [patch] i40e: remove an unneeded check Dan Carpenter
@ 2014-03-28 14:13 ` Jeff Kirsher
2014-03-28 19:17 ` Jeff Kirsher
2014-04-03 9:13 ` Dan Carpenter
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Kirsher @ 2014-03-28 14:13 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 228 bytes --]
On Fri, 2014-03-28 at 11:29 +0300, Dan Carpenter wrote:
> We know "ret" is zero here. No need to check again.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Thanks Dan, I have added your patch to my queue.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] i40e: remove an unneeded check
2014-03-28 8:29 [patch] i40e: remove an unneeded check Dan Carpenter
2014-03-28 14:13 ` Jeff Kirsher
@ 2014-03-28 19:17 ` Jeff Kirsher
2014-04-03 9:13 ` Dan Carpenter
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Kirsher @ 2014-03-28 19:17 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
On Fri, 2014-03-28 at 11:29 +0300, Dan Carpenter wrote:
> We know "ret" is zero here. No need to check again.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Dan with the latest bunch of patches I just pushed and that Dave
accepted, the code changes which directly affect your patch to leaves
your patch only changing the return statement from:
return ret;
to
return 0;
but with the recent change in the code, the ret value can be something
other than 0 so your patch does not appear to be needed any longer.
Can you double check my findings by taking a look at David Miller's
latest net-next tree to verify please?
Cheers,
Jeff
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] i40e: remove an unneeded check
2014-03-28 8:29 [patch] i40e: remove an unneeded check Dan Carpenter
2014-03-28 14:13 ` Jeff Kirsher
2014-03-28 19:17 ` Jeff Kirsher
@ 2014-04-03 9:13 ` Dan Carpenter
2 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2014-04-03 9:13 UTC (permalink / raw)
To: kernel-janitors
On Fri, Mar 28, 2014 at 12:17:16PM -0700, Jeff Kirsher wrote:
> On Fri, 2014-03-28 at 11:29 +0300, Dan Carpenter wrote:
> > We know "ret" is zero here. No need to check again.
> >
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> Dan with the latest bunch of patches I just pushed and that Dave
> accepted, the code changes which directly affect your patch to leaves
> your patch only changing the return statement from:
>
> return ret;
>
> to
>
> return 0;
>
> but with the recent change in the code, the ret value can be something
> other than 0 so your patch does not appear to be needed any longer.
Sure, yep. It's not needed anymore.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-03 9:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-28 8:29 [patch] i40e: remove an unneeded check Dan Carpenter
2014-03-28 14:13 ` Jeff Kirsher
2014-03-28 19:17 ` Jeff Kirsher
2014-04-03 9:13 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox