aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-28 08:44:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 19:25:22 -0400
commit91c72df1fc978b081224b2058067e2f5adc7143e (patch)
tree9f98e4aba6db3d9c33ab7ed403dd4b3bf22f860a
parentddd94257410fa6be955af4592d8727e3b4ba51ef (diff)
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)
1181 /* Freeing Write URBs */ 1181 /* Freeing Write URBs */
1182 for (j = 0; j < NUM_URBS; ++j) { 1182 for (j = 0; j < NUM_URBS; ++j) {
1183 if (mos7840_port->write_urb_pool[j]) { 1183 if (mos7840_port->write_urb_pool[j]) {
1184 if (mos7840_port->write_urb_pool[j]->transfer_buffer) 1184 kfree(mos7840_port->write_urb_pool[j]->transfer_buffer);
1185 kfree(mos7840_port->write_urb_pool[j]->
1186 transfer_buffer);
1187
1188 usb_free_urb(mos7840_port->write_urb_pool[j]); 1185 usb_free_urb(mos7840_port->write_urb_pool[j]);
1189 } 1186 }
1190 } 1187 }