G300: use int instead of signed

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2017-09-20 07:42:30 +02:00
committed by Peter Hutterer
parent 6d105a002c
commit 5edcdfba5b

View File

@@ -313,7 +313,7 @@ logitech_g300_read_profile(struct ratbag_profile *profile, unsigned int index)
HID_FEATURE_REPORT,
HID_REQ_GET_REPORT);
if (rc < (signed)sizeof(*report)) {
if (rc < (int)sizeof(*report)) {
log_error(device->ratbag,
"Error while requesting profile: %d\n", rc);
return;
@@ -480,7 +480,7 @@ logitech_g300_write_profile(struct ratbag_profile *profile)
HID_FEATURE_REPORT,
HID_REQ_SET_REPORT);
if (rc < (signed)sizeof(*report)) {
if (rc < (int)sizeof(*report)) {
log_error(device->ratbag,
"Error while writing profile: %d\n", rc);
return rc;