From 17d6cad0b508417193ebf4d23f67c845487e9932 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 9 May 2024 02:43:01 +0300 Subject: fix compilation on mint + Apparently some kernel headers are implicitly included on Debian or something, and Mint requires explicit #include statements. Weird. --- tminit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tminit.c') diff --git a/tminit.c b/tminit.c index 473017a..268b3fa 100644 --- a/tminit.c +++ b/tminit.c @@ -159,6 +159,7 @@ static void thrustmaster_change_handler(struct urb *urb) static int thrustmaster_submit_change(struct tm_wheel *tm_wheel, uint16_t switch_value) { + int ret = 0; tm_wheel->change_request->wValue = cpu_to_le16(switch_value); usb_fill_control_urb( tm_wheel->urb, @@ -170,7 +171,7 @@ static int thrustmaster_submit_change(struct tm_wheel *tm_wheel, uint16_t switch tm_wheel ); - int ret = usb_submit_urb(tm_wheel->urb, GFP_ATOMIC); + ret = usb_submit_urb(tm_wheel->urb, GFP_ATOMIC); if (ret) dev_err(&tm_wheel->interface->dev, "Error %d while submitting the change URB." -- cgit v1.3