@@ -1378,7 +1378,6 @@ static void joycon_parse_report(struct joycon_ctlr *ctlr,
static int joycon_send_rumble_data(struct joycon_ctlr *ctlr)
{
- int ret;
unsigned long flags;
struct joycon_rumble_output rumble_output = { 0 };
@@ -1403,9 +1402,8 @@ static int joycon_send_rumble_data(struct joycon_ctlr *ctlr)
joycon_enforce_subcmd_rate(ctlr);
- ret = __joycon_hid_send(ctlr->hdev, (u8 *)&rumble_output,
+ return __joycon_hid_send(ctlr->hdev, (u8 *)&rumble_output,
sizeof(rumble_output));
- return ret;
}
static void joycon_rumble_worker(struct work_struct *work)