diff options
Diffstat (limited to 'drivers/usb/mon/mon_main.c')
-rw-r--r-- | drivers/usb/mon/mon_main.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/usb/mon/mon_main.c b/drivers/usb/mon/mon_main.c index e58f761d060f..2e317bd79e92 100644 --- a/drivers/usb/mon/mon_main.c +++ b/drivers/usb/mon/mon_main.c | |||
@@ -148,18 +148,8 @@ static void mon_complete(struct usb_bus *ubus, struct urb *urb) | |||
148 | { | 148 | { |
149 | struct mon_bus *mbus; | 149 | struct mon_bus *mbus; |
150 | 150 | ||
151 | mbus = ubus->mon_bus; | 151 | if ((mbus = ubus->mon_bus) != NULL) |
152 | if (mbus == NULL) { | 152 | mon_bus_complete(mbus, urb); |
153 | /* | ||
154 | * This should not happen. | ||
155 | * At this point we do not even know the bus number... | ||
156 | */ | ||
157 | printk(KERN_ERR TAG ": Null mon bus in URB, address %p\n", | ||
158 | urb); | ||
159 | return; | ||
160 | } | ||
161 | |||
162 | mon_bus_complete(mbus, urb); | ||
163 | mon_bus_complete(&mon_bus0, urb); | 153 | mon_bus_complete(&mon_bus0, urb); |
164 | } | 154 | } |
165 | 155 | ||
@@ -170,7 +160,7 @@ static void mon_complete(struct usb_bus *ubus, struct urb *urb) | |||
170 | */ | 160 | */ |
171 | static void mon_stop(struct mon_bus *mbus) | 161 | static void mon_stop(struct mon_bus *mbus) |
172 | { | 162 | { |
173 | struct usb_bus *ubus = mbus->u_bus; | 163 | struct usb_bus *ubus; |
174 | struct list_head *p; | 164 | struct list_head *p; |
175 | 165 | ||
176 | if (mbus == &mon_bus0) { | 166 | if (mbus == &mon_bus0) { |