scsi: mvsas: clean up a few indentation issues
authorColin Ian King <colin.king@canonical.com>
Sat, 2 Feb 2019 10:30:35 +0000 (10:30 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 21:13:37 +0000 (17:13 -0400)
There are a few statements that are not indented correctly, so fix
these. Also add empty line between variable declaration and first
statements in functions. Also remove whitespace between * and mvi_dev to
clean up a cppcheck warning.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mvsas/mv_64xx.c
drivers/scsi/mvsas/mv_94xx.c
drivers/scsi/mvsas/mv_sas.c

index b757d389e32f77f2fbdc0c76b690c2c25de99d07..2c699bc785a8300c623732b3754196a99a4d2257 100644 (file)
@@ -678,7 +678,8 @@ static u32 mvs_64xx_spi_read_data(struct mvs_info *mvi)
 static void mvs_64xx_spi_write_data(struct mvs_info *mvi, u32 data)
 {
        void __iomem *regs = mvi->regs_ex;
-        iow32(SPI_DATA_REG_64XX, data);
+
+       iow32(SPI_DATA_REG_64XX, data);
 }
 
 
index eb5471bc72635c2d603c82188fef80ca6aad44df..68b5b5f39a0317d84e330dbe5f2a04a7d67f197c 100644 (file)
@@ -946,7 +946,8 @@ static u32 mvs_94xx_spi_read_data(struct mvs_info *mvi)
 static void mvs_94xx_spi_write_data(struct mvs_info *mvi, u32 data)
 {
        void __iomem *regs = mvi->regs_ex - 0x10200;
-        mw32(SPI_RD_DATA_REG_94XX, data);
+
+       mw32(SPI_RD_DATA_REG_94XX, data);
 }
 
 
index 311d23c727cef06c2a85cbd5e6b4f29967ef25ef..e933c65d8e0b85b0f853682a068896a960a86c38 100644 (file)
@@ -1422,7 +1422,7 @@ int mvs_I_T_nexus_reset(struct domain_device *dev)
 {
        unsigned long flags;
        int rc = TMF_RESP_FUNC_FAILED;
-    struct mvs_device * mvi_dev = (struct mvs_device *)dev->lldd_dev;
+       struct mvs_device *mvi_dev = (struct mvs_device *)dev->lldd_dev;
        struct mvs_info *mvi = mvi_dev->mvi_info;
 
        if (mvi_dev->dev_status != MVS_DEV_EH)