land: init: Use c++ strings

This commit is contained in:
karthick111 2017-03-16 17:44:25 +01:00
parent 1daa81e0af
commit 24b6e57205

View file

@ -109,11 +109,10 @@ static void init_alarm_boot_properties()
void vendor_load_properties() void vendor_load_properties()
{ {
char device[PROP_VALUE_MAX]; std::string device;
int rc;
rc = property_get("ro.cm.device", device); device = property_get("ro.cm.device");
if (!rc || strncmp(device, "land", PROP_VALUE_MAX)) if (device != "land")
return; return;
import_kernel_cmdline(0, import_cmdline); import_kernel_cmdline(0, import_cmdline);