[PATCH 5.15 018/667] usb: dwc3: gadget: Move null pinter check to proper place