staging: vme_user: remove multiple blank lines
authorMatt Jan <zoo868e@gmail.com>
Sun, 4 Dec 2022 10:19:16 +0000 (18:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Dec 2022 12:29:53 +0000 (13:29 +0100)
Remove multiple unnecessary blank lines in accordance with the Linux
kernel coding-style regulations. The issues were reported by the
checkpatch script.

Signed-off-by: Matt Jan <zoo868e@gmail.com>
Link: https://lore.kernel.org/r/20221204101916.GA51992@zoo868e
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme.h
drivers/staging/vme_user/vme_fake.c
drivers/staging/vme_user/vme_tsi148.c
drivers/staging/vme_user/vme_tsi148.h

index b204a9b..98da8d0 100644 (file)
@@ -27,7 +27,6 @@ enum vme_resource_type {
 #define VME_A64_MAX    0x10000000000000000ULL
 #define VME_CRCSR_MAX  0x1000000ULL
 
-
 /* VME Cycle Types */
 #define VME_SCT                0x1
 #define VME_BLT                0x2
@@ -185,6 +184,5 @@ int vme_bus_num(struct vme_dev *);
 int vme_register_driver(struct vme_driver *, unsigned int);
 void vme_unregister_driver(struct vme_driver *);
 
-
 #endif /* _VME_H_ */
 
index dd646b0..a9d3a7f 100644 (file)
@@ -356,7 +356,6 @@ static int __fake_master_get(struct vme_master_resource *image, int *enabled,
        return 0;
 }
 
-
 static int fake_master_get(struct vme_master_resource *image, int *enabled,
                unsigned long long *vme_base, unsigned long long *size,
                u32 *aspace, u32 *cycle, u32 *dwidth)
@@ -373,7 +372,6 @@ static int fake_master_get(struct vme_master_resource *image, int *enabled,
        return retval;
 }
 
-
 static void fake_lm_check(struct fake_driver *bridge, unsigned long long addr,
                          u32 aspace, u32 cycle)
 {
@@ -1060,7 +1058,6 @@ static void fake_crcsr_exit(struct vme_bridge *fake_bridge)
        kfree(bridge->crcsr_kernel);
 }
 
-
 static int __init fake_init(void)
 {
        int retval, i;
@@ -1238,7 +1235,6 @@ err_struct:
 
 }
 
-
 static void __exit fake_exit(void)
 {
        struct list_head *pos = NULL;
@@ -1294,7 +1290,6 @@ static void __exit fake_exit(void)
        root_device_unregister(vme_root);
 }
 
-
 MODULE_PARM_DESC(geoid, "Set geographical addressing");
 module_param(geoid, int, 0);
 
index 0171f46..482049c 100644 (file)
@@ -34,7 +34,6 @@
 static int tsi148_probe(struct pci_dev *, const struct pci_device_id *);
 static void tsi148_remove(struct pci_dev *);
 
-
 /* Module parameter */
 static bool err_chk;
 static int geoid;
@@ -673,7 +672,6 @@ static int tsi148_slave_get(struct vme_slave_resource *image, int *enabled,
        /* Need granularity before we set the size */
        *size = (unsigned long long)((vme_bound - *vme_base) + granularity);
 
-
        if ((ctl & TSI148_LCSR_ITAT_2eSSTM_M) == TSI148_LCSR_ITAT_2eSSTM_160)
                *cycle |= VME_2eSST160;
        if ((ctl & TSI148_LCSR_ITAT_2eSSTM_M) == TSI148_LCSR_ITAT_2eSSTM_267)
@@ -1142,7 +1140,6 @@ static int __tsi148_master_get(struct vme_master_resource *image, int *enabled,
        return 0;
 }
 
-
 static int tsi148_master_get(struct vme_master_resource *image, int *enabled,
        unsigned long long *vme_base, unsigned long long *size, u32 *aspace,
        u32 *cycle, u32 *dwidth)
@@ -1244,7 +1241,6 @@ out:
        return retval;
 }
 
-
 static ssize_t tsi148_master_write(struct vme_master_resource *image, void *buf,
        size_t count, loff_t offset)
 {
@@ -2000,7 +1996,6 @@ static int tsi148_lm_get(struct vme_lm_resource *lm,
        if ((lm_ctl & TSI148_LCSR_LMAT_AS_M) == TSI148_LCSR_LMAT_AS_A64)
                *aspace |= VME_A64;
 
-
        if (lm_ctl & TSI148_LCSR_LMAT_SUPR)
                *cycle |= VME_SUPER;
        if (lm_ctl & TSI148_LCSR_LMAT_NPRIV)
@@ -2551,7 +2546,6 @@ static void tsi148_remove(struct pci_dev *pdev)
 
        bridge = tsi148_bridge->driver_priv;
 
-
        dev_dbg(&pdev->dev, "Driver is being unloaded.\n");
 
        /*
index 226fedc..b3cb4a0 100644 (file)
@@ -87,7 +87,6 @@ struct tsi148_dma_entry {
  *                                Control and Status Registers
  */
 
-
 /*
  *  Command/Status Registers (CRG + $004)
  */
@@ -342,7 +341,6 @@ static const int TSI148_LCSR_VIACK[8] = { 0, TSI148_LCSR_VIACK1,
 #define TSI148_LCSR_IT7_ITOFL          0x3F4
 #define TSI148_LCSR_IT7_ITAT           0x3F8
 
-
 #define TSI148_LCSR_IT0                0x300
 #define TSI148_LCSR_IT1                0x320
 #define TSI148_LCSR_IT2                0x340
@@ -464,7 +462,6 @@ static const int TSI148_LCSR_IT[8] = { TSI148_LCSR_IT0, TSI148_LCSR_IT1,
 #define TSI148_LCSR_DMA0       0x500
 #define TSI148_LCSR_DMA1       0x580
 
-
 static const int TSI148_LCSR_DMA[TSI148_MAX_DMA] = { TSI148_LCSR_DMA0,
                                                TSI148_LCSR_DMA1 };
 
@@ -532,9 +529,6 @@ static const int TSI148_GCSR_MBOX[4] = { TSI148_GCSR_MBOX0,
 #define TSI148_CSRBSR  0xFF8
 #define TSI148_CBAR    0xFFC
 
-
-
-
        /*
         *  TSI148 Register Bit Definitions
         */
@@ -828,7 +822,6 @@ static const int TSI148_GCSR_MBOX[4] = { TSI148_GCSR_MBOX0,
 #define TSI148_LCSR_VEAT_AM_M          (0x3F<<8)       /* Address Mode Mask */
 #define TSI148_LCSR_VEAT_XAM_M         (0xFF<<0)       /* Master AMode Mask */
 
-
 /*
  * VMEbus PCI Error Diagnostics PCI/X Attributes Register  CRG + $280
  */