Re: [PATCH net-next v2 1/2] r8152: adjust r8152_submit_rx

2014-11-19 Thread Sergei Shtylyov
Hello. On 11/19/2014 8:20 AM, Hayes Wang wrote: The behavior of handling the returned status from r8152_submit_rx() is almost same, so let r8152_submit_rx() deal with the error directly. This could avoid the duplicate code. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 41 ++

[PATCH net-next v2 1/2] r8152: adjust r8152_submit_rx

2014-11-18 Thread Hayes Wang
The behavior of handling the returned status from r8152_submit_rx() is almost same, so let r8152_submit_rx() deal with the error directly. This could avoid the duplicate code. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 41 + 1 file changed, 21