kernel: device: Remove the redundant device name check

Remove the redundant device name match check in device_get_binding().

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
This commit is contained in:
Ramakrishna Pallala 2018-02-14 08:22:40 +05:30 committed by Anas Nashif
parent e7b6c8f322
commit 85fb583ed2

View File

@ -65,10 +65,6 @@ struct device *device_get_binding(const char *name)
continue;
}
if (name == info->config->name) {
return info;
}
if (!strcmp(name, info->config->name)) {
return info;
}