From akpm@linux-foundation.org Wed Nov 21 15:17:19 2007 From: Adrian Bunk Date: Wed, 21 Nov 2007 15:13:15 -0800 Subject: USB: usb/mon/mon_bin.c: cleanups To: greg@kroah.com Cc: linux-usb-devel@lists.sourceforge.net, akpm@linux-foundation.org, bunk@kernel.org, stern@rowland.harvard.edu, zaitcev@redhat.com Message-ID: <200711212313.lALNDFgb014222@imap1.linux-foundation.org> From: Adrian Bunk - make the needlessly global struct mon_fops_binary static - #if 0 the unused mon_bin_mmap() and related code Signed-off-by: Adrian Bunk Cc: Alan Stern Cc: Greg KH Cc: Pete Zaitcev Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- drivers/usb/mon/mon_bin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- 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 p 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, stru 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,