be2net: return error status from be_set_phys_id()
authorSuresh Reddy <suresh.reddy@broadcom.com>
Wed, 3 Feb 2016 04:19:16 +0000 (09:49 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Feb 2016 18:55:22 +0000 (13:55 -0500)
commita5a773a54e59538d03fd1a20facd7214c030b1d3
treebafb62bacabfbe890134f70fe1dad14e097c2eff
parent19f76f63507fa87f56eb3d864318c5c65268bb46
be2net: return error status from be_set_phys_id()

be_set_phys_id() returns 0 to ethtool when the command fails in the FW.

This patch fixes the set_phys_id() to return -EIO in case the FW cmd fails.

Signed-off-by: Suresh Reddy <suresh.reddy@broadcom.com>
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_ethtool.c