subsys parameter is never used by configfs_undepend_item()
so there is no point in passing it to this function.

Signed-off-by: Krzysztof Opasiak <k.opas...@samsung.com>
---
 drivers/target/target_core_configfs.c |    2 +-
 fs/configfs/dir.c                     |    3 +--
 include/linux/configfs.h              |    5 +++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/target/target_core_configfs.c 
b/drivers/target/target_core_configfs.c
index b9b9ffd..2e47fe6 100644
--- a/drivers/target/target_core_configfs.c
+++ b/drivers/target/target_core_configfs.c
@@ -278,7 +278,7 @@ EXPORT_SYMBOL(target_depend_item);
 
 void target_undepend_item(struct config_item *item)
 {
-       return configfs_undepend_item(&target_core_fabrics, item);
+       return configfs_undepend_item(item);
 }
 EXPORT_SYMBOL(target_undepend_item);
 
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index c81ce7f..113462ac6 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
@@ -1128,8 +1128,7 @@ EXPORT_SYMBOL(configfs_depend_item);
  * configfs_depend_item() because we know that that the client driver is
  * pinned, thus the subsystem is pinned, and therefore configfs is pinned.
  */
-void configfs_undepend_item(struct configfs_subsystem *subsys,
-                           struct config_item *target)
+void configfs_undepend_item(struct config_item *target)
 {
        struct configfs_dirent *sd;
 
diff --git a/include/linux/configfs.h b/include/linux/configfs.h
index a8a335b..5f5e041 100644
--- a/include/linux/configfs.h
+++ b/include/linux/configfs.h
@@ -199,7 +199,8 @@ void configfs_unregister_subsystem(struct 
configfs_subsystem *subsys);
 
 /* These functions can sleep and can alloc with GFP_KERNEL */
 /* WARNING: These cannot be called underneath configfs callbacks!! */
-int configfs_depend_item(struct configfs_subsystem *subsys, struct config_item 
*target);
-void configfs_undepend_item(struct configfs_subsystem *subsys, struct 
config_item *target);
+int configfs_depend_item(struct configfs_subsystem *subsys,
+                        struct config_item *target);
+void configfs_undepend_item(struct config_item *target);
 
 #endif /* _CONFIGFS_H_ */
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to