]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/hid/i2c-hid/i2c-hid.c
HID: i2c-hid: fix inverted return value from i2c_hid_command()
[mirror_ubuntu-bionic-kernel.git] / drivers / hid / i2c-hid / i2c-hid.c
index 1536e3a11a575f123d337c93ea852a77d704c22c..37c04711024186797eb4866c37b9d3efb0655dcd 100644 (file)
@@ -1221,7 +1221,7 @@ static int i2c_hid_resume(struct device *dev)
         */
        if (ihid->quirks & I2C_HID_QUIRK_RESEND_REPORT_DESCR) {
                ret = i2c_hid_command(client, &hid_report_descr_cmd, NULL, 0);
-               if (!ret)
+               if (ret)
                        return ret;
        }