drm/i915: Unpin the ringbuffer if we fail to ioremap it.
[cascardo/linux.git] / drivers / hid / hid-sony.c
index 86e563b..dd5a397 100644 (file)
@@ -102,7 +102,7 @@ static int sony_probe(struct hid_device *hdev, const struct hid_device_id *id)
        }
 
        ret = sony_set_operational(hdev);
-       if (ret)
+       if (ret < 0)
                goto err_stop;
 
        return 0;