]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
staging/fwserial: Remove superfluous free
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 28 Nov 2012 02:37:13 +0000 (21:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Nov 2012 16:46:52 +0000 (08:46 -0800)
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 <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/fwserial.c

index 0681967337f976b2864281ec255aa8a48879b101..61ee29083b268ece51870b1c80c60035acd4fa55 100644 (file)
@@ -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]);
        }