clang: Fix static analysis warnings from clang

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
Ben Widawsky
2012-08-30 14:17:01 -07:00
parent 54ed938d39
commit bc62567b77
6 changed files with 11 additions and 12 deletions
+3 -2
View File
@@ -89,8 +89,9 @@ int main(int argc, char *argv[])
if (!is_alive()) {
INFO_PRINT("gpu reset? restarting daemon\n");
intel_register_access_fini();
ret = intel_register_access_init(intel_get_pci_device(),
1);
ret = intel_register_access_init(intel_get_pci_device(), 1);
if (ret)
INFO_PRINT("Reg access init fail\n");
}
sleep(1);
}