]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/hid/hid-microsoft.c
Bluetooth: hidp: Fix assumptions on the return value of hidp_send_message
[mirror_ubuntu-hirsute-kernel.git] / drivers / hid / hid-microsoft.c
index 8b3a922bdad3415e8831e83901fa2fd81426f40e..2cf83856f2e41c7e6c1456224988eaaa6a370e0f 100644 (file)
@@ -303,7 +303,7 @@ static void ms_ff_worker(struct work_struct *work)
        r->magnitude[MAGNITUDE_WEAK] = ms->weak;     /* right actuator */
 
        ret = hid_hw_output_report(hdev, (__u8 *)r, sizeof(*r));
-       if (ret)
+       if (ret < 0)
                hid_warn(hdev, "failed to send FF report\n");
 }