[PATCH openEuler-5.10 010/427] usb: dwc3: gadget: Move null pinter check to proper place