G600: prevent unused variable usage warning

This commit is contained in:
Yaroslav Chvanov
2023-02-24 23:09:32 +03:00
parent 683b5d752c
commit 5158d80cfa

View File

@@ -446,6 +446,10 @@ logitech_g600_read_profile(struct ratbag_profile *profile)
case 0: report_id = LOGITECH_G600_REPORT_ID_PROFILE_0; break;
case 1: report_id = LOGITECH_G600_REPORT_ID_PROFILE_1; break;
case 2: report_id = LOGITECH_G600_REPORT_ID_PROFILE_2; break;
default:
/* Should've been handled by the assertion above. */
abort();
break;
}
rc = ratbag_hidraw_raw_request(device, report_id,