staging: rts5208: Remove multiple assignment
authorWayne Porter <wporter82@gmail.com>
Tue, 11 Oct 2016 21:56:33 +0000 (21:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:26:51 +0000 (10:26 +0200)
Assign values to variables on their own lines instead of using multiple
assignment

Signed-off-by: Wayne Porter <wporter82@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_scsi.c

index 9c6d257e41ecfa0657b2b9c3505b8f68ac04df2b..b42c236274c74548afca7d026bc1b3422e85f76c 100644 (file)
@@ -3022,10 +3022,13 @@ static int get_ms_information(struct scsi_cmnd *srb, struct rtsx_chip *chip)
                return TRANSPORT_FAILED;
        }
 
-       if (dev_info_id == 0x15)
-               buf_len = data_len = 0x3A;
-       else
-               buf_len = data_len = 0x6A;
+       if (dev_info_id == 0x15) {
+               buf_len = 0x3A;
+               data_len = 0x3A;
+       } else {
+               buf_len = 0x6A;
+               data_len = 0x6A;
+       }
 
        buf = kmalloc(buf_len, GFP_KERNEL);
        if (!buf) {