@@ -208,7 +208,7 @@ static struct config_group *target_core_register_fabric(
* mkdir(2) system calls with known TCM fabric modules.
*/
- if (!strncmp(name, "iscsi", 5)) {
+ if (!sysfs_streq(name, "iscsi")) {
/*
* Automatically load the LIO Target fabric module when the
* following is called:
@@ -221,7 +221,7 @@ static struct config_group *target_core_register_fabric(
" iscsi_target_mod.ko: %d\n", ret);
return ERR_PTR(-EINVAL);
}
- } else if (!strncmp(name, "loopback", 8)) {
+ } else if (!sysfs_streq(name, "loopback")) {
/*
* Automatically load the tcm_loop fabric module when the
* following is called: