mmc: vub300: fix an error code
[platform/kernel/linux-starfive.git] / drivers / mmc / host / vub300.c
index 9ec593d..cef0e71 100644 (file)
@@ -2309,6 +2309,7 @@ static int vub300_probe(struct usb_interface *interface,
                vub300->read_only =
                        (0x0010 & vub300->system_port_status.port_flags) ? 1 : 0;
        } else {
+               retval = -EINVAL;
                goto error5;
        }
        usb_set_intfdata(interface, vub300);