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:
parent
e7b6c8f322
commit
85fb583ed2
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user