Fix some cppcheck style issues.

[ROCm/hip commit: 9bba97fdcc]
This commit is contained in:
Ben Sander
2017-11-21 16:44:28 -06:00
parent 419a80db24
commit 905389741c
4 changed files with 24 additions and 21 deletions
+3 -3
View File
@@ -446,14 +446,14 @@ hipError_t hipChooseDevice( int* device, const hipDeviceProp_t* prop )
{
HIP_INIT_API(device,prop);
hipDeviceProp_t tempProp;
int deviceCount;
int inPropCount = 0;
int matchedPropCount = 0;
hipError_t e = hipSuccess;
if((device == NULL) || (prop == NULL)) {
e = hipErrorInvalidValue;
}
if(e == hipSuccess) {
int deviceCount;
int inPropCount = 0;
int matchedPropCount = 0;
ihipGetDeviceCount( &deviceCount );
*device = 0;
for (int i = 0; i < deviceCount; i++) {