smsc95xx: check return code from control messages
authorSteve Glendinning <steve.glendinning@shawell.net>
Fri, 28 Sep 2012 00:07:09 +0000 (00:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2012 22:34:57 +0000 (18:34 -0400)
commit769ea6d89d5b915415a95432ff102c0aaf65e916
tree7e6ce819f28f5b66b7a491eceea2ed97f0c5db45
parent4436761b63364201934d5511bb1199bee438345b
smsc95xx: check return code from control messages

This patch adds additional checks of the values returned by
smsc95xx_(read|write)_reg, and wraps their common patterns
in macros.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c