qlcnic: Fix programming number of arguments in a command.
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Tue, 14 Oct 2014 11:41:45 +0000 (07:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 21:05:17 +0000 (17:05 -0400)
commit2a1ef4b5a72614c72fce0e21f44e996ee8f0ef23
tree8f0cf940d14ebede4866af32b8e4be301958bd50
parentdb404b13617fe0cdb415da55762203d456837912
qlcnic: Fix programming number of arguments in a command.

o Initially we were programming maximum number of arguments.
  Instead we should program number of arguments required in
  a command.
o Maximum number of arguments for 82xx adapter is four. Fix it
  for GET_ESWITCH_STATS command.

Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c