diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-03 00:57:29 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-03 00:57:29 -0400 |
commit | e37a97d44038700ff8c2f1080f71fdfc3a4c0c1e (patch) | |
tree | c78b612f6cca1efd305743c4bdce237f06975965 /drivers/usb/input/usbtouchscreen.c | |
parent | 4bdd488f4bf7dc91b371fe160a4718b0a91bb2a4 (diff) | |
download | lwn-e37a97d44038700ff8c2f1080f71fdfc3a4c0c1e.tar.gz lwn-e37a97d44038700ff8c2f1080f71fdfc3a4c0c1e.zip |
Input: drivers/usb/input - usb_buffer_free() cleanup
usb_buffer_free() now handles NULLs so remove unneeded checks
form callers.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb/input/usbtouchscreen.c')
-rw-r--r-- | drivers/usb/input/usbtouchscreen.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/input/usbtouchscreen.c b/drivers/usb/input/usbtouchscreen.c index e0829413336b..8e18e6c64777 100644 --- a/drivers/usb/input/usbtouchscreen.c +++ b/drivers/usb/input/usbtouchscreen.c @@ -668,9 +668,8 @@ static void usbtouch_close(struct input_dev *input) static void usbtouch_free_buffers(struct usb_device *udev, struct usbtouch_usb *usbtouch) { - if (usbtouch->data) - usb_buffer_free(udev, usbtouch->type->rept_size, - usbtouch->data, usbtouch->data_dma); + usb_buffer_free(udev, usbtouch->type->rept_size, + usbtouch->data, usbtouch->data_dma); kfree(usbtouch->buffer); } |