tty: serial: msm_serial: Remove set but unused variable 'status'
authorLee Jones <lee.jones@linaro.org>
Wed, 4 Nov 2020 19:35:33 +0000 (19:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2020 09:54:04 +0000 (10:54 +0100)
Fixes the following W=1 kernel build warning(s):

 drivers/tty/serial/msm_serial.c: In function ‘msm_complete_tx_dma’:
 drivers/tty/serial/msm_serial.c:429:18: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]

Cc: Andy Gross <agross@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Cc: Robert Love <rlove@google.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: linux-serial@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Link: https://lore.kernel.org/r/20201104193549.4026187-21-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/msm_serial.c

index 87f005e..ec31a80 100644 (file)
@@ -426,7 +426,6 @@ static void msm_complete_tx_dma(void *args)
        struct circ_buf *xmit = &port->state->xmit;
        struct msm_dma *dma = &msm_port->tx_dma;
        struct dma_tx_state state;
-       enum dma_status status;
        unsigned long flags;
        unsigned int count;
        u32 val;
@@ -437,7 +436,7 @@ static void msm_complete_tx_dma(void *args)
        if (!dma->count)
                goto done;
 
-       status = dmaengine_tx_status(dma->chan, dma->cookie, &state);
+       dmaengine_tx_status(dma->chan, dma->cookie, &state);
 
        dma_unmap_single(port->dev, dma->phys, dma->count, dma->dir);