]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: adjust r8152_submit_rx
authorhayeswang <hayeswang@realtek.com>
Thu, 20 Nov 2014 02:29:05 +0000 (10:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Nov 2014 19:52:57 +0000 (14:52 -0500)
commita0b48dbcbc39068188970f3a0345675acf7c15d1
tree828b349c18515fa3de5ee8c61def8c69fae8919e
parentdab6e4bda5b280c7714b172209e08e6599a96a2c
r8152: adjust r8152_submit_rx

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 <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c