staging: fsl-dpaa2/ethsw: Remove unused variable irq
authorNguyen Phan Quang Minh <minhnpq16@gmail.com>
Fri, 30 Mar 2018 10:17:23 +0000 (12:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 08:49:14 +0000 (10:49 +0200)
Local variable irq is not used. Remove it.

Signed-off-by: Nguyen Phan Quang Minh<minhnpq16@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/ethsw.c

index c723a04bc3d6c0e0bc2262afb6c5e5882bd4a6d4..a698498b85375c2f591f2d722cfda9de8f37e08c 100644 (file)
@@ -616,10 +616,8 @@ static void ethsw_teardown_irqs(struct fsl_mc_device *sw_dev)
 {
        struct device *dev = &sw_dev->dev;
        struct ethsw_core *ethsw = dev_get_drvdata(dev);
-       struct fsl_mc_device_irq *irq;
        int err;
 
-       irq = sw_dev->irqs[DPSW_IRQ_INDEX_IF];
        err = dpsw_set_irq_enable(ethsw->mc_io, 0, ethsw->dpsw_handle,
                                  DPSW_IRQ_INDEX_IF, 0);
        if (err)