Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <sh_def@163.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Hui Su and committed by
Linus Torvalds
a9389683 c6c75ded

+1 -2
+1 -2
fs/proc/internal.h
··· 190 190 extern int proc_readdir(struct file *, struct dir_context *); 191 191 int proc_readdir_de(struct file *, struct dir_context *, struct proc_dir_entry *); 192 192 193 - static inline struct proc_dir_entry *pde_get(struct proc_dir_entry *pde) 193 + static inline void pde_get(struct proc_dir_entry *pde) 194 194 { 195 195 refcount_inc(&pde->refcnt); 196 - return pde; 197 196 } 198 197 extern void pde_put(struct proc_dir_entry *); 199 198