summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-28 14:44:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 16:25:22 -0700
commit91c72df1fc978b081224b2058067e2f5adc7143e (patch)
tree9f98e4aba6db3d9c33ab7ed403dd4b3bf22f860a
parentddd94257410fa6be955af4592d8727e3b4ba51ef (diff)
downloadblackbird-op-linux-91c72df1fc978b081224b2058067e2f5adc7143e.tar.gz
blackbird-op-linux-91c72df1fc978b081224b2058067e2f5adc7143e.zip
drivers/usb/serial/mos7840.c: remove unnecessary null test before kfree
Cc: Johan Hovold <jhovold@gmail.com> Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/serial/mos7840.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index 393be562d875..3d88eefdf1d1 100644
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -1181,10 +1181,7 @@ static void mos7840_close(struct usb_serial_port *port)
/* Freeing Write URBs */
for (j = 0; j < NUM_URBS; ++j) {
if (mos7840_port->write_urb_pool[j]) {
- if (mos7840_port->write_urb_pool[j]->transfer_buffer)
- kfree(mos7840_port->write_urb_pool[j]->
- transfer_buffer);
-
+ kfree(mos7840_port->write_urb_pool[j]->transfer_buffer);
usb_free_urb(mos7840_port->write_urb_pool[j]);
}
}
OpenPOWER on IntegriCloud