Fix cppcheck static analysis report warning

Fix some warning from static anaysis tool.

Change-Id: I7e8c2f5d6f79aff5fdcad81b1fd832900f213c47


[ROCm/amdsmi commit: 1b7eb4e1f4]
This commit is contained in:
Bill(Shuzhou) Liu
2023-03-13 09:27:19 -05:00
parent ea950b8778
commit 6d5a10d914
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ int main()
// amd_oam_ops.get_mapi_version(&version);
if (!amd_oam_ops.discover_devices(&dev_cnt))
printf("%d AMD devices are discovered\n", dev_cnt);
printf("%u AMD devices are discovered\n", dev_cnt);
if (!dev_cnt) {
printf("No devices are found.\n");
return amd_oam_ops.free();