Re: [PATCH] usb: gadget: function: Remove redundant usb_free_all_descriptors

2014-10-13 Thread pavi1729 Sid
On Mon, Oct 13, 2014 at 2:02 PM, Robert Baldyga r.bald...@samsung.com wrote: Hi, On 10/10/2014 03:09 PM, pavi1729 ivap wrote: From: Pavitra pavitra1...@gmail.com Date: Fri, 10 Oct 2014 16:05:30 +0530 Subject: [PATCH] usb: gadget: function: Remove redundant usb_free_all_descriptors

Subject: [PATCH] usb: gadget: function: Remove redundant usb_free_all_descriptors

2014-10-13 Thread pavi1729 Sid
Removed the usb_free_all_descriptors call in *_bind functions as this call is already present in usb_assign_descriptors. usb_assign_descriptors is the only call where usb descriptor allocation happens, also in case of error freeing of the allocated memory takes place in the same call. Hence the

Re: Subject: [PATCH] usb: gadget: function: Remove redundant usb_free_all_descriptors

2014-10-13 Thread pavi1729 Sid
Documentation/SubmittingPatches. ('git format-patch --subject-prefix' is helpful). On 10/13/2014 11:35 AM, pavi1729 Sid wrote: Removed the usb_free_all_descriptors call in *_bind functions as this call is already present in usb_assign_descriptors. usb_assign_descriptors is the only call where

[PATCH v2] usb: gadget: function: Remove redundant usb_free_all_descriptors

2014-10-13 Thread pavi1729 Sid
Removed the usb_free_all_descriptors call in *_bind functions as this call is already present in usb_assign_descriptors. usb_assign_descriptors is the only call where usb descriptor allocation happens and in case of error, freeing of the allocated memory takes place inside the same call. Hence the