summaryrefslogtreecommitdiffstats
path: root/drivers/usb/usb.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-21 22:00:56 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-21 22:00:56 +0000
commit168660f24dfc46c2702acbe4701a446f42a59578 (patch)
treef431368afbf6b1b71809cf3fd904d800ea126f4d /drivers/usb/usb.c
parent6420f767924fa73b0ea267864d96820815f4ba5a (diff)
Merge with Linux 2.4.0-test5-pre3.
Diffstat (limited to 'drivers/usb/usb.c')
-rw-r--r--drivers/usb/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/usb.c b/drivers/usb/usb.c
index 9c650cfdc..bfac6098b 100644
--- a/drivers/usb/usb.c
+++ b/drivers/usb/usb.c
@@ -428,7 +428,7 @@ int usb_interface_claimed(struct usb_interface *iface)
void usb_driver_release_interface(struct usb_driver *driver, struct usb_interface *iface)
{
/* this should never happen, don't release something that's not ours */
- if (iface->driver != driver || !iface)
+ if (!iface || iface->driver != driver)
return;
iface->driver = NULL;