qahw_api: test: fix KW error in multi-record-test
Fix KW suspicious dereference of pointer reported by KW in
multi-record test.
The pointer being dereferenced cannot be null at this point
since failure case is fatal and exits the test before reaching
this code, so just removing the null check with is creating suspicion.
Change-Id: Icee262f7a11cfbc462cae4fb53134451f22787a9
diff --git a/qahw_api/test/qahw_multi_record_test.c b/qahw_api/test/qahw_multi_record_test.c
index 7be6512..67aa78c 100644
--- a/qahw_api/test/qahw_multi_record_test.c
+++ b/qahw_api/test/qahw_multi_record_test.c
@@ -454,8 +454,7 @@
tsColdF.tv_nsec/1000000 - tsColdI.tv_nsec/1000000;
fread((void *) latencyBuf, 100, 1, fdLatencyNode);
- if (fdLatencyNode)
- fclose(fdLatencyNode);
+ fclose(fdLatencyNode);
sscanf(latencyBuf, " %llu,%llu", &tsec, &tusec);
tCont = ((uint64_t)tsCont.tv_sec)*1000 - tsec*1000 + ((uint64_t)tsCont.tv_nsec)/1000000 - tusec/1000;
if (log_file != stdout) {