]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20dce5d97adc1c4ffe5bdcb8d8f0cb468d72829a
tree2c12cb3a5ca98473e22d2e79804ea7cd30505770
parent34d80ed5aea0e7d366873183ad1ce2a23c3b817a
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