Skip to content

Commit 029c3f2

Browse files
committed
fs: remove unused path_put_init()
This helper has been unused for a while now. Link: https://lore.kernel.org/r/20240822-bewuchs-werktag-46672b3c0606@brauner Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 57510c5 commit 029c3f2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

include/linux/path.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ static inline int path_equal(const struct path *path1, const struct path *path2)
1818
return path1->mnt == path2->mnt && path1->dentry == path2->dentry;
1919
}
2020

21-
static inline void path_put_init(struct path *path)
22-
{
23-
path_put(path);
24-
*path = (struct path) { };
25-
}
26-
2721
/*
2822
* Cleanup macro for use with __free(path_put). Avoids dereference and
2923
* copying @path unlike DEFINE_FREE(). path_put() will handle the empty

0 commit comments

Comments
 (0)