diff --git a/drivers/mmi_info/mmi_unit_info.c b/drivers/mmi_info/mmi_unit_info.c index fd3e9070df90..f466a101a1db 100644 --- a/drivers/mmi_info/mmi_unit_info.c +++ b/drivers/mmi_info/mmi_unit_info.c @@ -21,10 +21,6 @@ #include #include "mmi_info.h" -#ifndef CONFIG_ARM64 -#include -#endif - #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) #include /* Match to @@ -110,11 +106,7 @@ static int mmi_unit_smem_setup(void) mui_copy->system_rev = mmi_chosen_data.system_rev; mui_copy->system_serial_low = mmi_chosen_data.system_serial_low; mui_copy->system_serial_high = mmi_chosen_data.system_serial_high; -#ifndef CONFIG_ARM64 - strlcpy(mui_copy->machine, machine_desc->name, MACHINE_MAX_LEN); -#else strlcpy(mui_copy->machine, "", MACHINE_MAX_LEN); -#endif strlcpy(mui_copy->barcode, serialno, BARCODE_MAX_LEN); strlcpy(mui_copy->baseband, mmi_chosen_data.baseband, BASEBAND_MAX_LEN); strlcpy(mui_copy->carrier, carrier, CARRIER_MAX_LEN);