All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs/proc: make pde_get() return nothing
@ 2020-12-11  6:19 Hui Su
  0 siblings, 0 replies; only message in thread
From: Hui Su @ 2020-12-11  6:19 UTC (permalink / raw)
  To: adobriyan, ebiederm, akpm, sh_def, linux-kernel, linux-fsdevel

we don't need pde_get()'s return value, so make
pde_get() return nothing

Signed-off-by: Hui Su <sh_def@163.com>
---
 fs/proc/internal.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index 917cc85e3466..0abbd93a4a08 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 *);
 
-- 
2.29.2



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-11  7:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11  6:19 [PATCH] fs/proc: make pde_get() return nothing Hui Su

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.