From: Hui Su Date: Wed, 16 Dec 2020 04:42:42 +0000 (-0800) Subject: fs/proc: make pde_get() return nothing X-Git-Tag: v5.15~2186^2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9389683fafcd4b6f7dcef62f9f05d436a12cfb5;p=platform%2Fkernel%2Flinux-starfive.git fs/proc: make pde_get() return nothing We don't need pde_get()'s return value, so make pde_get() return nothing Link: https://lkml.kernel.org/r/20201211061944.GA2387571@rlk Signed-off-by: Hui Su Cc: Alexey Dobriyan Cc: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/internal.h b/fs/proc/internal.h index afbe96b..f60b379 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -190,10 +190,9 @@ struct dentry *proc_lookup_de(struct inode *, struct dentry *, struct proc_dir_e extern int proc_readdir(struct file *, struct dir_context *); int proc_readdir_de(struct file *, struct dir_context *, struct proc_dir_entry *); -static inline struct proc_dir_entry *pde_get(struct proc_dir_entry *pde) +static inline void pde_get(struct proc_dir_entry *pde) { refcount_inc(&pde->refcnt); - return pde; } extern void pde_put(struct proc_dir_entry *);