be2net: Fix smatch warnings in be_main.c
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Mon, 22 Oct 2012 23:02:44 +0000 (23:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2012 17:03:45 +0000 (13:03 -0400)
commitbe7164467372a829e5730696b7162b10bc4c8403
treee09ba0e137c024f01aefc76f6b054b4ce5549e04
parentc80bbeaec98b36eeba9c6c77061226034d5c4622
be2net: Fix smatch warnings in be_main.c

FW flashing code, even though it works correctly, makes some hidden
assumptions about buffer sizes. This is causing code analysers to
report error. Cleanup FW flashing code to remove these hidden assumptions.

Reported-by: Yuanhan Liu <yuanhan.liu@intel.com>
Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@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