aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/uhci-debug.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2010-08-05 13:12:14 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 17:35:45 -0400
commitb409214c683ed06c26e2cdad0be546ad11463354 (patch)
treee8274abb90ceb25877b689af00248c69a764db1a /drivers/usb/host/uhci-debug.c
parentb3e670443b7fb8a2d29831b62b44a039c283e351 (diff)
USB: remove fake "address-of" expressions
Fake "address-of" expressions that evaluate to NULL generally confuse readers and can provoke compiler warnings. This patch (as1412) removes three such fake expressions, using "#ifdef"s in their place. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/uhci-debug.c')
-rw-r--r--drivers/usb/host/uhci-debug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c
index c168999722d1..6e7fb5f38db6 100644
--- a/drivers/usb/host/uhci-debug.c
+++ b/drivers/usb/host/uhci-debug.c
@@ -17,7 +17,6 @@
17 17
18#include "uhci-hcd.h" 18#include "uhci-hcd.h"
19 19
20#define uhci_debug_operations (* (const struct file_operations *) NULL)
21static struct dentry *uhci_debugfs_root; 20static struct dentry *uhci_debugfs_root;
22 21
23#ifdef DEBUG 22#ifdef DEBUG
@@ -558,7 +557,6 @@ static int uhci_debug_release(struct inode *inode, struct file *file)
558 return 0; 557 return 0;
559} 558}
560 559
561#undef uhci_debug_operations
562static const struct file_operations uhci_debug_operations = { 560static const struct file_operations uhci_debug_operations = {
563 .owner = THIS_MODULE, 561 .owner = THIS_MODULE,
564 .open = uhci_debug_open, 562 .open = uhci_debug_open,
@@ -566,6 +564,7 @@ static const struct file_operations uhci_debug_operations = {
566 .read = uhci_debug_read, 564 .read = uhci_debug_read,
567 .release = uhci_debug_release, 565 .release = uhci_debug_release,
568}; 566};
567#define UHCI_DEBUG_OPS
569 568
570#endif /* CONFIG_DEBUG_FS */ 569#endif /* CONFIG_DEBUG_FS */
571 570