Fix some warning from static anaysis tool. Change-Id: I7e8c2f5d6f79aff5fdcad81b1fd832900f213c47 [ROCm/rocm_smi_lib commit: 1b7eb4e1f4]
1b7eb4e1f4