be2net: make be_cmd_get_regs() return a status
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 2 Sep 2014 04:26:54 +0000 (09:56 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 19:46:00 +0000 (12:46 -0700)
commitc5f156def02bffe41bb6c931302c074d00465354
tree2c12cb3a5ca98473e22d2e79804ea7cd30505770
parent0d3f5ccec907bcfb4f5d4941d762dc2f89b2d24d
be2net: make be_cmd_get_regs() return a status

There are a few failure cases in be_cmd_get_regs() that ideally must return
an error value. This style is used across all the routines in be_cmds.c with
this routine being an exception. This patch fixes this.

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h