HID: thingm: set the proper error code before leaving
[cascardo/linux.git] / drivers / hid / hid-thingm.c
index 134be89..f91f971 100644 (file)
@@ -250,6 +250,7 @@ static int thingm_probe(struct hid_device *hdev, const struct hid_device_id *id)
 
        if (!tdev->fwinfo) {
                hid_err(hdev, "unsupported firmware %c\n", tdev->version.major);
+               err = -ENODEV;
                goto stop;
        }