From 61e85426a242a6a0b71f73b9a810f67714bca3d2 Mon Sep 17 00:00:00 2001 From: Jihoon Jung Date: Wed, 28 Jun 2023 16:55:54 +0900 Subject: [PATCH] Fix build error for toolchain upgrade Change-Id: I4c31f0d4ab49691770ef31fca76548b525011273 Signed-off-by: Jihoon Jung --- test/mdg-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 test/mdg-manager.c diff --git a/test/mdg-manager.c b/test/mdg-manager.c old mode 100755 new mode 100644 index 8006911..b78a861 --- a/test/mdg-manager.c +++ b/test/mdg-manager.c @@ -1083,7 +1083,7 @@ static int run_request_eject(MManager *mm, struct menu_data *menu) } int grp_idx = 1; - if (group_idx != NULL && strlen(group_idx)) { + if (strlen(group_idx)) { grp_idx = (unsigned short)strtol(group_idx, NULL, 10); if (0 >= grp_idx) { msgp("Invalid index. set to 1"); @@ -1100,7 +1100,7 @@ static int run_request_eject(MManager *mm, struct menu_data *menu) } int dev_idx = 1; - if (device_idx != NULL && strlen(device_idx)) { + if (strlen(device_idx)) { dev_idx = (unsigned short)strtol(device_idx, NULL, 10); if (0 >= dev_idx) { msgp("Invalid index. set to 1"); -- 2.7.4