be2net: reduce arguments passed to FW-cmd routines
authorKalesh AP <kalesh.purayil@emulex.com>
Thu, 17 Jul 2014 10:50:26 +0000 (16:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 23:38:15 +0000 (16:38 -0700)
commite97e3cda5b43edf250f67cbf90b1d438ee56b2dc
treef626d1ce03d92430cfc8f0c5f7be5f962d033b51
parent6bdf8f55d27707ea3f7af0aaddf0e3bb79cf6aed
be2net: reduce arguments passed to FW-cmd routines

A pointer to adapter struct is passed anyway to all of the FW-cmd routines
in be_cmds.c. For routines which query data from FW, the adapter pointer
is enough to return the queried fields.
There is no need to separately pass pointers to individual members of
the adapter structure. This patch fixes this for be_cmd_get_fw_ver()
and be_cmd_get_fw_cfg() routines.

Signed-off-by: Kalesh AP <kalesh.purayil@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
drivers/net/ethernet/emulex/benet/be_main.c