[PATCH 1/9] acpi: dbg2: remove dead store to ptr1

Colin King colin.king at canonical.com
Wed Dec 16 00:51:37 UTC 2015


From: Colin Ian King <colin.king at canonical.com>

Static analysis from clang scan-build detected a dead store
to ptr1 which we can safely remove.

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/acpi/dbg2/dbg2.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/acpi/dbg2/dbg2.c b/src/acpi/dbg2/dbg2.c
index 3d12efc..7a234d6 100644
--- a/src/acpi/dbg2/dbg2.c
+++ b/src/acpi/dbg2/dbg2.c
@@ -128,7 +128,6 @@ static void dbg2_obj_find(
 	 *	     \_SB_.A___.BB__.CCC_.DDDD.EE__
 	 */
 	expanded = alloca(1 + (5 * (i + 1)));
-	ptr1 = obj_name;
 	ptr2 = expanded;
 
 	for (i = -1, ptr1 = obj_name; ; ptr1++) {
-- 
2.6.4




More information about the fwts-devel mailing list