Commit 568fdade authored by Adrian Bunk's avatar Adrian Bunk Committed by Greg Kroah-Hartman

USB: usb/mon/mon_bin.c: cleanups

- make the needlessly global struct mon_fops_binary static
- #if 0 the unused mon_bin_mmap() and related code
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg KH <greg@kroah.com>
Cc: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d8d42233
...@@ -1026,6 +1026,8 @@ mon_bin_poll(struct file *file, struct poll_table_struct *wait) ...@@ -1026,6 +1026,8 @@ mon_bin_poll(struct file *file, struct poll_table_struct *wait)
return mask; return mask;
} }
#if 0
/* /*
* open and close: just keep track of how many times the device is * open and close: just keep track of how many times the device is
* mapped, to use the proper memory allocation function. * mapped, to use the proper memory allocation function.
...@@ -1079,7 +1081,9 @@ int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma) ...@@ -1079,7 +1081,9 @@ int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)
return 0; return 0;
} }
struct file_operations mon_fops_binary = { #endif /* 0 */
static struct file_operations mon_fops_binary = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = mon_bin_open, .open = mon_bin_open,
.llseek = no_llseek, .llseek = no_llseek,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment