diff options
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r-- | Documentation/DocBook/writing_usb_driver.tmpl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/DocBook/writing_usb_driver.tmpl b/Documentation/DocBook/writing_usb_driver.tmpl index 51f3bfb6fb6e..008a341234d0 100644 --- a/Documentation/DocBook/writing_usb_driver.tmpl +++ b/Documentation/DocBook/writing_usb_driver.tmpl | |||
@@ -345,8 +345,7 @@ if (!retval) { | |||
345 | <programlisting> | 345 | <programlisting> |
346 | static inline void skel_delete (struct usb_skel *dev) | 346 | static inline void skel_delete (struct usb_skel *dev) |
347 | { | 347 | { |
348 | if (dev->bulk_in_buffer != NULL) | 348 | kfree (dev->bulk_in_buffer); |
349 | kfree (dev->bulk_in_buffer); | ||
350 | if (dev->bulk_out_buffer != NULL) | 349 | if (dev->bulk_out_buffer != NULL) |
351 | usb_buffer_free (dev->udev, dev->bulk_out_size, | 350 | usb_buffer_free (dev->udev, dev->bulk_out_size, |
352 | dev->bulk_out_buffer, | 351 | dev->bulk_out_buffer, |