From: Peter Hurley Date: Wed, 28 Nov 2012 02:37:13 +0000 (-0500) Subject: staging/fwserial: Remove superfluous free X-Git-Tag: firefly_0821_release~3680^2~1518^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=218cbbd82132d48c6f4e042e31beb6019f92db01;p=firefly-linux-kernel-4.4.55.git staging/fwserial: Remove superfluous free Now that the dma fifo is allocated on activate and freed on shutdown, this extra free is harmless but unnecessary. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c index 0681967337f9..61ee29083b26 100644 --- a/drivers/staging/fwserial/fwserial.c +++ b/drivers/staging/fwserial/fwserial.c @@ -949,7 +949,6 @@ static void fwserial_destroy(struct kref *kref) for (j = 0; j < num_ports; ++j) { fw_core_remove_address_handler(&ports[j]->rx_handler); - dma_fifo_free(&ports[j]->tx_fifo); tty_port_destroy(&ports[j]->port); kfree(ports[j]); }