staging: rts5208: Remove space after cast
authorRehas Sachdeva <aquannie@gmail.com>
Tue, 20 Sep 2016 11:16:24 +0000 (16:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 12:03:04 +0000 (14:03 +0200)
Removes unnecessary space after a cast. Issue found by checkpatch.

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx.h
drivers/staging/rts5208/xd.c

index c0f513c786594a0f4ecf46f9dcae047e2a2bec9c..7a21e466a1b4df03ba6e0cca94c3b42c15fb879f 100644 (file)
@@ -135,12 +135,12 @@ typedef struct rtsx_dev rtsx_dev_t;
 /* Convert between rtsx_dev and the corresponding Scsi_Host */
 static inline struct Scsi_Host *rtsx_to_host(struct rtsx_dev *dev)
 {
-       return container_of((void *) dev, struct Scsi_Host, hostdata);
+       return container_of((void *)dev, struct Scsi_Host, hostdata);
 }
 
 static inline struct rtsx_dev *host_to_rtsx(struct Scsi_Host *host)
 {
-       return (struct rtsx_dev *) host->hostdata;
+       return (struct rtsx_dev *)host->hostdata;
 }
 
 static inline void get_current_time(u8 *timeval_buf, int buf_len)
index 126a2dc85b4e21e7f8fd5fffd5364ace366ab679..ff423fa4600bee03926f2b7901ca2dd34f11315b 100644 (file)
@@ -937,7 +937,7 @@ static void xd_set_unused_block(struct rtsx_chip *chip, u32 phy_blk)
        dev_dbg(rtsx_dev(chip), "Set unused block to index %d\n",
                zone->set_index);
 
-       zone->free_table[zone->set_index++] = (u16) (phy_blk & 0x3ff);
+       zone->free_table[zone->set_index++] = (u16)(phy_blk & 0x3ff);
        if (zone->set_index >= XD_FREE_TABLE_CNT)
                zone->set_index = 0;
        zone->unused_blk_cnt++;