]> Git Repo - linux.git/commitdiff
fs/proc: make pde_get() return nothing
authorHui Su <[email protected]>
Wed, 16 Dec 2020 04:42:42 +0000 (20:42 -0800)
committerLinus Torvalds <[email protected]>
Wed, 16 Dec 2020 06:46:15 +0000 (22:46 -0800)
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 <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Eric W. Biederman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/proc/internal.h

index afbe96b6bf77def7e5cd5b3d62e90b20c87728b4..f60b379dcdc76a69510bdba17ed9fcd6ff101152 100644 (file)
@@ -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 *);
 
This page took 0.060659 seconds and 4 git commands to generate.