[Prevent] Deleted array to 0 comparison.
authorJan Olszak <j.olszak@samsung.com>
Fri, 28 Dec 2012 08:25:21 +0000 (09:25 +0100)
committerGerrit Code Review <gerrit2@kim11>
Mon, 31 Dec 2012 11:16:12 +0000 (20:16 +0900)
[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

index 9cc9c56..9428fb3 100644 (file)
@@ -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,