build: fix unused-result warnings

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood
2015-09-07 11:32:05 +01:00
parent f0381d1abe
commit 1dcace3018
7 changed files with 22 additions and 12 deletions
+2 -2
View File
@@ -113,10 +113,10 @@ again:
udev_device_unref(udev_dev);
asprintf(&err_msg, "Parity error detected on: %d,%d,%d,%d. "
assert(asprintf(&err_msg, "Parity error detected on: %d,%d,%d,%d. "
"Try to run intel_l3_parity -r %d -b %d -s %d -w %d -d",
loc->slice, loc->row, loc->bank, loc->subbank,
loc->row, loc->bank, loc->subbank, loc->slice);
loc->row, loc->bank, loc->subbank, loc->slice) != -1);
if (daemon) {
syslog(LOG_INFO, "%s\n", err_msg);
goto again;
+2 -1
View File
@@ -506,7 +506,8 @@ static int intel_reg_snapshot(struct config *config, int argc, char *argv[])
intel_mmio_use_pci_bar(config->pci_dev);
/* XXX: error handling */
write(1, igt_global_mmio, config->pci_dev->regions[mmio_bar].size);
if (write(1, igt_global_mmio, config->pci_dev->regions[mmio_bar].size) == -1)
fprintf(stderr, "Error writing snapshot: %s", strerror(errno));
if (config->verbosity > 0)
printf("use this with --mmio=FILE --devid=0x%04X\n",