diff options
Diffstat (limited to 'fs/sysfs/inode.c')
-rw-r--r-- | fs/sysfs/inode.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index efb4062fe099..e22db6cd4df7 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -200,7 +200,10 @@ int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name) | |||
200 | if (sd) | 200 | if (sd) |
201 | sysfs_remove_one(&acxt, sd); | 201 | sysfs_remove_one(&acxt, sd); |
202 | 202 | ||
203 | if (sysfs_addrm_finish(&acxt)) | 203 | sysfs_addrm_finish(&acxt); |
204 | |||
205 | if (sd) | ||
204 | return 0; | 206 | return 0; |
205 | return -ENOENT; | 207 | else |
208 | return -ENOENT; | ||
206 | } | 209 | } |