aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/ipmi_msghandler.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-04-29 04:01:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 11:06:15 -0400
commitfa68be0def375c78f723a7d49221f8f6c8194f29 (patch)
treebc45bfbd81c060425f1462f107128b4040694d69 /drivers/char/ipmi/ipmi_msghandler.c
parent95c0ba892470a8f95b3dd3938a722ff64229aed1 (diff)
ipmi: remove ->write_proc code
IPMI code theoretically allows ->write_proc users, but nobody uses this thus far. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Corey Minyard <minyard@acm.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/ipmi/ipmi_msghandler.c')
-rw-r--r--drivers/char/ipmi/ipmi_msghandler.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
index 5b13579ca21d..8c4baddd3731 100644
--- a/drivers/char/ipmi/ipmi_msghandler.c
+++ b/drivers/char/ipmi/ipmi_msghandler.c
@@ -1941,7 +1941,7 @@ static int stat_file_read_proc(char *page, char **start, off_t off,
1941#endif /* CONFIG_PROC_FS */ 1941#endif /* CONFIG_PROC_FS */
1942 1942
1943int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name, 1943int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name,
1944 read_proc_t *read_proc, write_proc_t *write_proc, 1944 read_proc_t *read_proc,
1945 void *data, struct module *owner) 1945 void *data, struct module *owner)
1946{ 1946{
1947 int rv = 0; 1947 int rv = 0;
@@ -1968,7 +1968,6 @@ int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name,
1968 } else { 1968 } else {
1969 file->data = data; 1969 file->data = data;
1970 file->read_proc = read_proc; 1970 file->read_proc = read_proc;
1971 file->write_proc = write_proc;
1972 file->owner = owner; 1971 file->owner = owner;
1973 1972
1974 mutex_lock(&smi->proc_entry_lock); 1973 mutex_lock(&smi->proc_entry_lock);
@@ -1997,17 +1996,17 @@ static int add_proc_entries(ipmi_smi_t smi, int num)
1997 1996
1998 if (rv == 0) 1997 if (rv == 0)
1999 rv = ipmi_smi_add_proc_entry(smi, "stats", 1998 rv = ipmi_smi_add_proc_entry(smi, "stats",
2000 stat_file_read_proc, NULL, 1999 stat_file_read_proc,
2001 smi, THIS_MODULE); 2000 smi, THIS_MODULE);
2002 2001
2003 if (rv == 0) 2002 if (rv == 0)
2004 rv = ipmi_smi_add_proc_entry(smi, "ipmb", 2003 rv = ipmi_smi_add_proc_entry(smi, "ipmb",
2005 ipmb_file_read_proc, NULL, 2004 ipmb_file_read_proc,
2006 smi, THIS_MODULE); 2005 smi, THIS_MODULE);
2007 2006
2008 if (rv == 0) 2007 if (rv == 0)
2009 rv = ipmi_smi_add_proc_entry(smi, "version", 2008 rv = ipmi_smi_add_proc_entry(smi, "version",
2010 version_file_read_proc, NULL, 2009 version_file_read_proc,
2011 smi, THIS_MODULE); 2010 smi, THIS_MODULE);
2012#endif /* CONFIG_PROC_FS */ 2011#endif /* CONFIG_PROC_FS */
2013 2012