diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-12-02 18:42:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-12-05 15:08:45 +0100 |
commit | b282a118eb4ecb5d32eb022f4bed929531d9925b (patch) | |
tree | 3f59c11ad5114ad88d4ca8e40ca0fec1bfd4228d /drivers/mfd/max8998-irq.c | |
parent | 3e448e13a662fb20145916636127995cbf37eb83 (diff) | |
download | blackbird-op-linux-b282a118eb4ecb5d32eb022f4bed929531d9925b.tar.gz blackbird-op-linux-b282a118eb4ecb5d32eb022f4bed929531d9925b.zip |
usbip: vudc: Refactor init_vudc_hw() to be more obvious
Current implementation of init_vudc_hw() adds ep0 to ep_list
and then after looping through all endpoints removes it from
that list.
As this may be misleading let's refactor this function
and avoid adding and removing ep0 to eplist and place it
immediately in correct place.
In addition let's remove redundant 0 assignments as ep
array is zeroed during allocation.
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mfd/max8998-irq.c')
0 files changed, 0 insertions, 0 deletions