Skip to content

Commit bf44039

Browse files
zoo868egregkh
authored andcommitted
staging: vme_user: remove multiple blank lines
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 <[email protected]> Link: https://lore.kernel.org/r/20221204101916.GA51992@zoo868e Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7868f8f commit bf44039

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

drivers/staging/vme_user/vme.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ enum vme_resource_type {
2727
#define VME_A64_MAX 0x10000000000000000ULL
2828
#define VME_CRCSR_MAX 0x1000000ULL
2929

30-
3130
/* VME Cycle Types */
3231
#define VME_SCT 0x1
3332
#define VME_BLT 0x2
@@ -185,6 +184,5 @@ int vme_bus_num(struct vme_dev *);
185184
int vme_register_driver(struct vme_driver *, unsigned int);
186185
void vme_unregister_driver(struct vme_driver *);
187186

188-
189187
#endif /* _VME_H_ */
190188

drivers/staging/vme_user/vme_fake.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ static int __fake_master_get(struct vme_master_resource *image, int *enabled,
356356
return 0;
357357
}
358358

359-
360359
static int fake_master_get(struct vme_master_resource *image, int *enabled,
361360
unsigned long long *vme_base, unsigned long long *size,
362361
u32 *aspace, u32 *cycle, u32 *dwidth)
@@ -373,7 +372,6 @@ static int fake_master_get(struct vme_master_resource *image, int *enabled,
373372
return retval;
374373
}
375374

376-
377375
static void fake_lm_check(struct fake_driver *bridge, unsigned long long addr,
378376
u32 aspace, u32 cycle)
379377
{
@@ -1060,7 +1058,6 @@ static void fake_crcsr_exit(struct vme_bridge *fake_bridge)
10601058
kfree(bridge->crcsr_kernel);
10611059
}
10621060

1063-
10641061
static int __init fake_init(void)
10651062
{
10661063
int retval, i;
@@ -1238,7 +1235,6 @@ static int __init fake_init(void)
12381235

12391236
}
12401237

1241-
12421238
static void __exit fake_exit(void)
12431239
{
12441240
struct list_head *pos = NULL;
@@ -1294,7 +1290,6 @@ static void __exit fake_exit(void)
12941290
root_device_unregister(vme_root);
12951291
}
12961292

1297-
12981293
MODULE_PARM_DESC(geoid, "Set geographical addressing");
12991294
module_param(geoid, int, 0);
13001295

drivers/staging/vme_user/vme_tsi148.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
static int tsi148_probe(struct pci_dev *, const struct pci_device_id *);
3535
static void tsi148_remove(struct pci_dev *);
3636

37-
3837
/* Module parameter */
3938
static bool err_chk;
4039
static int geoid;
@@ -673,7 +672,6 @@ static int tsi148_slave_get(struct vme_slave_resource *image, int *enabled,
673672
/* Need granularity before we set the size */
674673
*size = (unsigned long long)((vme_bound - *vme_base) + granularity);
675674

676-
677675
if ((ctl & TSI148_LCSR_ITAT_2eSSTM_M) == TSI148_LCSR_ITAT_2eSSTM_160)
678676
*cycle |= VME_2eSST160;
679677
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,
11421140
return 0;
11431141
}
11441142

1145-
11461143
static int tsi148_master_get(struct vme_master_resource *image, int *enabled,
11471144
unsigned long long *vme_base, unsigned long long *size, u32 *aspace,
11481145
u32 *cycle, u32 *dwidth)
@@ -1244,7 +1241,6 @@ static ssize_t tsi148_master_read(struct vme_master_resource *image, void *buf,
12441241
return retval;
12451242
}
12461243

1247-
12481244
static ssize_t tsi148_master_write(struct vme_master_resource *image, void *buf,
12491245
size_t count, loff_t offset)
12501246
{
@@ -2000,7 +1996,6 @@ static int tsi148_lm_get(struct vme_lm_resource *lm,
20001996
if ((lm_ctl & TSI148_LCSR_LMAT_AS_M) == TSI148_LCSR_LMAT_AS_A64)
20011997
*aspace |= VME_A64;
20021998

2003-
20041999
if (lm_ctl & TSI148_LCSR_LMAT_SUPR)
20052000
*cycle |= VME_SUPER;
20062001
if (lm_ctl & TSI148_LCSR_LMAT_NPRIV)
@@ -2551,7 +2546,6 @@ static void tsi148_remove(struct pci_dev *pdev)
25512546

25522547
bridge = tsi148_bridge->driver_priv;
25532548

2554-
25552549
dev_dbg(&pdev->dev, "Driver is being unloaded.\n");
25562550

25572551
/*

drivers/staging/vme_user/vme_tsi148.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ struct tsi148_dma_entry {
8787
* Control and Status Registers
8888
*/
8989

90-
9190
/*
9291
* Command/Status Registers (CRG + $004)
9392
*/
@@ -342,7 +341,6 @@ static const int TSI148_LCSR_VIACK[8] = { 0, TSI148_LCSR_VIACK1,
342341
#define TSI148_LCSR_IT7_ITOFL 0x3F4
343342
#define TSI148_LCSR_IT7_ITAT 0x3F8
344343

345-
346344
#define TSI148_LCSR_IT0 0x300
347345
#define TSI148_LCSR_IT1 0x320
348346
#define TSI148_LCSR_IT2 0x340
@@ -464,7 +462,6 @@ static const int TSI148_LCSR_IT[8] = { TSI148_LCSR_IT0, TSI148_LCSR_IT1,
464462
#define TSI148_LCSR_DMA0 0x500
465463
#define TSI148_LCSR_DMA1 0x580
466464

467-
468465
static const int TSI148_LCSR_DMA[TSI148_MAX_DMA] = { TSI148_LCSR_DMA0,
469466
TSI148_LCSR_DMA1 };
470467

@@ -532,9 +529,6 @@ static const int TSI148_GCSR_MBOX[4] = { TSI148_GCSR_MBOX0,
532529
#define TSI148_CSRBSR 0xFF8
533530
#define TSI148_CBAR 0xFFC
534531

535-
536-
537-
538532
/*
539533
* TSI148 Register Bit Definitions
540534
*/
@@ -828,7 +822,6 @@ static const int TSI148_GCSR_MBOX[4] = { TSI148_GCSR_MBOX0,
828822
#define TSI148_LCSR_VEAT_AM_M (0x3F<<8) /* Address Mode Mask */
829823
#define TSI148_LCSR_VEAT_XAM_M (0xFF<<0) /* Master AMode Mask */
830824

831-
832825
/*
833826
* VMEbus PCI Error Diagnostics PCI/X Attributes Register CRG + $280
834827
*/

0 commit comments

Comments
 (0)