fs/proc: make pde_get() return nothing
Subsystems (2)
PATCH 1/1 fs/proc: make pde_get() return nothing
we don't need pde_get()'s return value, so makepde_get() return nothing
Signed-off-by Hui Su <[email protected]>
--- fs/proc/internal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/proc/internal.h +1 -2
@@ -190,10 +190,9 @@ struct dentry *proc_lookup_de(struct inode *, struct dentry *, struct proc_dir_eextern 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 *);
Signature · 1 line
2.29.2