bnx2x: make local function static and remove dead code