From 91491fbb6b2dad9ff7159e1586611637b693d5d4 Mon Sep 17 00:00:00 2001 From: Jan Olszak Date: Fri, 28 Dec 2012 09:25:21 +0100 Subject: [PATCH] [Prevent] Deleted array to 0 comparison. [Issue] Array compared against 0 [Bug] N/A [Cause] N/A [Solution] Deleted. [Verification] Build commons. Change-Id: Ib9751d79fb509869ace273f4d9c1ea39ecc372e2 --- modules/utils/src/wrt_global_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/utils/src/wrt_global_settings.cpp b/modules/utils/src/wrt_global_settings.cpp index 9cc9c56..9428fb3 100644 --- a/modules/utils/src/wrt_global_settings.cpp +++ b/modules/utils/src/wrt_global_settings.cpp @@ -67,7 +67,7 @@ MachineType getMachineType() // get current machine name struct utsname u; if (0 == uname(&u)) { - if ((!u.machine) || (0 == strlen(u.machine))) { + if (0 == strlen(u.machine)) { return MACHINE_TYPE_UNKNOWN; } else { // If current machine is emul, -- 2.7.4