summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-07-28 17:21:07 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2021-07-28 17:27:25 -0400
commitac82bc1ea5473d1c0945b13a71c5d1d9ef692e23 (patch)
treecd5bfd103735f8ec6db1fef18e311190197ef46b
parentf06b01e9eacca7cd23679ee92f3d082c9352263f (diff)
Delete unused variable
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--include/linux/kobject.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index d5241786..c7362d63 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -98,12 +98,9 @@ static inline void kobject_put(struct kobject *kobj)
static inline void kobject_del(struct kobject *kobj)
{
- struct kernfs_node *sd;
-
if (!kobj)
return;
- sd = kobj->sd;
kobj->state_in_sysfs = 0;
#if 0
kobj_kset_leave(kobj);