[PATCH openEuler-5.10 068/146] net: bnx2x: fix variable dereferenced before check