enic: fix return value in _vnic_dev_cmd
authorGovindarajulu Varadarajan <_govind@gmx.com>
Mon, 23 Jun 2014 10:37:59 +0000 (16:07 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jun 2014 21:32:19 +0000 (14:32 -0700)
commit10cc88446cec4eee8e2efab24ad387d52ef1f4fb
treeeff9e24156cad2aa7286ebc4a753e5c50b710045
parente0f31d8498676fda36289603a054d0d490aa2679
enic: fix return value in _vnic_dev_cmd

Hardware (in readq(&devcmd->args[0])) returns positive number in case of error.
But _vnic_dev_cmd should return a negative value in case of error.

Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/vnic_dev.c