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