Message ID | 546DF9D7.6080801@users.sourceforge.net |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
> -----Original Message----- > From: SF Markus Elfring [mailto:elfring@users.sourceforge.net] > Sent: Thursday, November 20, 2014 9:25 AM > To: Haiyang Zhang; KY Srinivasan; devel@linuxdriverproject.org; > netdev@vger.kernel.org > Cc: LKML; kernel-janitors@vger.kernel.org; Julia Lawall > Subject: [PATCH 1/1] net: Hyper-V: Deletion of an unnecessary check > before the function call "vfree" > > From: Markus Elfring <elfring@users.sourceforge.net> > Date: Thu, 20 Nov 2014 15:15:21 +0100 > > The vfree() function performs also input parameter validation. Thus the > test > around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Thanks!
From: SF Markus Elfring <elfring@users.sourceforge.net> Date: Thu, 20 Nov 2014 15:25:27 +0100 > From: Markus Elfring <elfring@users.sourceforge.net> > Date: Thu, 20 Nov 2014 15:15:21 +0100 > > The vfree() function performs also input parameter validation. Thus the test > around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> This does not apply to the net-next tree, please respin. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
> This does not apply to the net-next tree, please respin.
Thanks for your reply.
How do you think about to try out the scripts which I published
in March to get more constructive feedback?
Will they run faster for another analysis on current
Linux source files with your test systems (than my computer)?
Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: SF Markus Elfring <elfring@users.sourceforge.net> Date: Fri, 21 Nov 2014 23:15:42 +0100 >> This does not apply to the net-next tree, please respin. > > Thanks for your reply. > > How do you think about to try out the scripts which I published > in March to get more constructive feedback? This has nothing to do with me asking you to frame your patches against the correct tree. If I had time to investigate automation of changes using such tools, I would participate in such discussions, but I don't. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
> This has nothing to do with me asking you to frame your patches > against the correct tree. I imagine than someone other can also pick up this update suggestion (a simple change of two lines) quicker before I might try another software build again from a different commit as a base. Regards, Markus -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Sun, 2014-11-23 at 01:51 +0100, SF Markus Elfring wrote: > > This has nothing to do with me asking you to frame your patches > > against the correct tree. > > I imagine than someone other can also pick up this update suggestion > (a simple change of two lines) quicker before I might try another > software build again from a different commit as a base. I have no idea why someone would do that. If you don't bother resubmit, nobody will. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: SF Markus Elfring <elfring@users.sourceforge.net> Date: Sun, 23 Nov 2014 01:51:24 +0100 >> This has nothing to do with me asking you to frame your patches >> against the correct tree. > > I imagine than someone other can also pick up this update suggestion > (a simple change of two lines) quicker before I might try another > software build again from a different commit as a base. Whereas if you learn how to base your changes cleanly on the correct base now, all of your future submissions will go quickly and smoothly into my tree. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
>> I imagine than someone other can also pick up this update suggestion >> (a simple change of two lines) quicker before I might try another >> software build again from a different commit as a base. > > I have no idea why someone would do that. I imagine that other software users (besides me) like developers and testers might also become curious to try the proposed changes out. How much will they eventually help to run Linux components a bit faster? > If you don't bother resubmit, nobody will. I hope that there are more possibilities for anticipation and acceptance of source code improvement potentials. Would you also like to contribute a bit more fine-tuning for the affected software versions? Regards, Markus -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
> Whereas if you learn how to base your changes cleanly on the correct > base now, all of your future submissions will go quickly and smoothly > into my tree. My reluctance to work with more Linux repositories will evolve over time. The faster affected software versions can be rebuilt the more it will become interesting to try even more source code improvements out, won't it? I find it nice that you could accept update suggestions for a few other Linux components already. Regards, Markus -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: SF Markus Elfring <elfring@users.sourceforge.net> Date: Sun, 23 Nov 2014 08:18:31 +0100 >> Whereas if you learn how to base your changes cleanly on the correct >> base now, all of your future submissions will go quickly and smoothly >> into my tree. > > My reluctance to work with more Linux repositories will evolve > over time. The faster affected software versions can be rebuilt > the more it will become interesting to try even more source > code improvements out, won't it? > > I find it nice that you could accept update suggestions for > a few other Linux components already. You are seriously starting to waste our time. Either resubmit your changes against a clean base, or more on. Seriously, all I am purely interested in is seeing properly submitted patches, reviewing them, and then integrating them. Anything else is pure noise to me. Thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index da2d346..ffe7481 100644 --- a/drivers/net/hyperv/netvsc.c +++ b/drivers/net/hyperv/netvsc.c @@ -548,8 +548,7 @@ int netvsc_device_remove(struct hv_device *device) vmbus_close(device->channel); /* Release all resources */ - if (net_device->sub_cb_buf) - vfree(net_device->sub_cb_buf); + vfree(net_device->sub_cb_buf); kfree(net_device); return 0;