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()
{
char device[PROP_VALUE_MAX];
int rc;
std::string device;
rc = property_get("ro.cm.device", device);
if (!rc || strncmp(device, "land", PROP_VALUE_MAX))
device = property_get("ro.cm.device");
if (device != "land")
return;
import_kernel_cmdline(0, import_cmdline);