diff options
Diffstat (limited to 'drivers/usb/mon/mon_text.c')
-rw-r--r-- | drivers/usb/mon/mon_text.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_text.c index a7eb4c99342c..9f1a9227ebe6 100644 --- a/drivers/usb/mon/mon_text.c +++ b/drivers/usb/mon/mon_text.c | |||
@@ -150,20 +150,6 @@ static inline char mon_text_get_data(struct mon_event_text *ep, struct urb *urb, | |||
150 | return '>'; | 150 | return '>'; |
151 | } | 151 | } |
152 | 152 | ||
153 | /* | ||
154 | * The check to see if it's safe to poke at data has an enormous | ||
155 | * number of corner cases, but it seems that the following is | ||
156 | * more or less safe. | ||
157 | * | ||
158 | * We do not even try to look at transfer_buffer, because it can | ||
159 | * contain non-NULL garbage in case the upper level promised to | ||
160 | * set DMA for the HCD. | ||
161 | */ | ||
162 | if (urb->dev->bus->uses_dma && | ||
163 | (urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP)) { | ||
164 | return mon_dmapeek(ep->data, urb->transfer_dma, len); | ||
165 | } | ||
166 | |||
167 | if (urb->transfer_buffer == NULL) | 153 | if (urb->transfer_buffer == NULL) |
168 | return 'Z'; /* '0' would be not as pretty. */ | 154 | return 'Z'; /* '0' would be not as pretty. */ |
169 | 155 | ||