tools: fix coverity warnings

Assigned but not used.

Found by coverity

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-04-27 11:18:07 +10:00
committed by bentiss
parent 6a097bd691
commit dfd2d88953

View File

@@ -435,7 +435,7 @@ ratbag_cmd_info(const struct ratbag_cmd *cmd,
led = ratbag_led_unref(led);
}
profile = ratbag_profile_unref(profile);
ratbag_profile_unref(profile);
}
return SUCCESS;
@@ -755,7 +755,7 @@ ratbag_cmd_list_supported_devices(const struct ratbag_cmd *cmd,
device = ratbag_cmd_open_device(ratbag, path);
if (device) {
printf("%s:\t%s\n", path, ratbag_device_get_name(device));
device = ratbag_device_unref(device);
ratbag_device_unref(device);
supported++;
}
free(input_list[i]);