* [2.6 patch] usb/mon/mon_bin.c: cleanups
@ 2007-11-05 17:07 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-11-05 17:07 UTC (permalink / raw)
To: Alan Stern, Pete Zaitcev, Greg Kroah-Hartman
Cc: linux-usb-devel, linux-kernel
This patch contains the following cleanups:
- make the needlessly global struct mon_fops_binary static
- #if 0 the unused mon_bin_mmap() and related code
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
drivers/usb/mon/mon_bin.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
69e50589713d96e3f26e15ca1ad6360d46281e2b
diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c
index f06e4e2..81aab52 100644
--- a/drivers/usb/mon/mon_bin.c
+++ b/drivers/usb/mon/mon_bin.c
@@ -1026,6 +1026,8 @@ mon_bin_poll(struct file *file, struct poll_table_struct *wait)
return mask;
}
+#if 0
+
/*
* open and close: just keep track of how many times the device is
* mapped, to use the proper memory allocation function.
@@ -1079,7 +1081,9 @@ int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)
return 0;
}
-struct file_operations mon_fops_binary = {
+#endif /* 0 */
+
+static struct file_operations mon_fops_binary = {
.owner = THIS_MODULE,
.open = mon_bin_open,
.llseek = no_llseek,
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-05 17:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-05 17:07 [2.6 patch] usb/mon/mon_bin.c: cleanups Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox