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)
commita0fccd4860cbd2f88f1fa577af2aca33f399c9d7
tree828b349c18515fa3de5ee8c61def8c69fae8919e
parentf869c912869edc2754355af9e10e5aaff8ff5a40
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