Staging: rts5208: rtsx_transport.c: Remove unnecessary parentheses
authorShaun Ren <shaun.ren@linux.com>
Mon, 15 Feb 2016 18:58:53 +0000 (10:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 23:35:42 +0000 (15:35 -0800)
This patch removes all unnecessary parentheses found by checkpatch.pl.

Signed-off-by: Shaun Ren <shaun.ren@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_transport.c

index aadef51b35dff62790008d7aa873bb26f2e399c5..c604576318438857692e761a60d277ed948b028e 100644 (file)
@@ -194,7 +194,7 @@ void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip)
                /* set the result so the higher layers expect this data */
                srb->result = SAM_STAT_CHECK_CONDITION;
                memcpy(srb->sense_buffer,
-                      (unsigned char *)&(chip->sense_buffer[SCSI_LUN(srb)]),
+                      (unsigned char *)&chip->sense_buffer[SCSI_LUN(srb)],
                       sizeof(struct sense_data_t));
        }
 
@@ -368,7 +368,7 @@ static int rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card,
 
        spin_unlock_irq(&rtsx->reg_lock);
 
-       sg_cnt = dma_map_sg(&(rtsx->pci->dev), sg, num_sg, dma_dir);
+       sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir);
 
        resid = size;
        sg_ptr = sg;
@@ -482,7 +482,7 @@ static int rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card,
 out:
        rtsx->done = NULL;
        rtsx->trans_state = STATE_TRANS_NONE;
-       dma_unmap_sg(&(rtsx->pci->dev), sg, num_sg, dma_dir);
+       dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir);
 
        if (err < 0)
                rtsx_stop_cmd(chip, card);
@@ -532,7 +532,7 @@ static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card,
 
        spin_unlock_irq(&rtsx->reg_lock);
 
-       buf_cnt = dma_map_sg(&(rtsx->pci->dev), sg, num_sg, dma_dir);
+       buf_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir);
 
        sg_ptr = sg;
 
@@ -630,7 +630,7 @@ static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card,
 out:
        rtsx->done = NULL;
        rtsx->trans_state = STATE_TRANS_NONE;
-       dma_unmap_sg(&(rtsx->pci->dev), sg, num_sg, dma_dir);
+       dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir);
 
        if (err < 0)
                rtsx_stop_cmd(chip, card);
@@ -714,7 +714,7 @@ static int rtsx_transfer_buf(struct rtsx_chip *chip, u8 card, void *buf,
 out:
        rtsx->done = NULL;
        rtsx->trans_state = STATE_TRANS_NONE;
-       dma_unmap_single(&(rtsx->pci->dev), addr, len, dma_dir);
+       dma_unmap_single(&rtsx->pci->dev, addr, len, dma_dir);
 
        if (err < 0)
                rtsx_stop_cmd(chip, card);