staging: rts5208: remove unnecessary parentheses in rtsx_transport.c
authorBenjamin Philip <benjamin.philip495@gmail.com>
Tue, 21 Sep 2021 07:33:45 +0000 (13:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Sep 2021 15:30:55 +0000 (17:30 +0200)
This commit removes unnecessary parentheses, that have been flagged
by checkpatch.pl in rtsx_transport.c.

Signed-off-by: Benjamin Philip <benjamin.philip495@gmail.com>
Link: https://lore.kernel.org/r/2fdcc64fbfa85482917d229163e4eb6c4094b789.1632209460.git.benjamin.philip495@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_transport.c

index 909a3e663ef6345b494820553ee292e69edda0b3..805dc18fac0aa65b67b5c44de10bc241835e875a 100644 (file)
@@ -326,7 +326,7 @@ static int rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card,
        struct scatterlist *sg_ptr;
        u32 val = TRIG_DMA;
 
-       if (!sg || (num_sg <= 0) || !offset || !index)
+       if (!sg || num_sg <= 0 || !offset || !index)
                return -EIO;
 
        if (dma_dir == DMA_TO_DEVICE)
@@ -489,7 +489,7 @@ static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card,
        long timeleft;
        struct scatterlist *sg_ptr;
 
-       if (!sg || (num_sg <= 0))
+       if (!sg || num_sg <= 0)
                return -EIO;
 
        if (dma_dir == DMA_TO_DEVICE)
@@ -635,7 +635,7 @@ static int rtsx_transfer_buf(struct rtsx_chip *chip, u8 card, void *buf,
        u32 val = BIT(31);
        long timeleft;
 
-       if (!buf || (len <= 0))
+       if (!buf || len <= 0)
                return -EIO;
 
        if (dma_dir == DMA_TO_DEVICE)