Skip to contentSkip to conversation

staging: comedi: Cleaned a bit of code that was not required

PATCH In review vaatsalya shrivastava 2 participants 2 messages Oct 27, 2021 – Oct 28, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: comedi: Cleaned a bit of code that was not required

Warning found by checkpatch.pl script.

---
 drivers/comedi/drivers/dt2815.c        | 2 +-
 drivers/staging/vme/devices/vme_user.h | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/comedi/drivers/dt2815.c +1 -1
index 5906f32aa01f..2be240630bbd 100644
@@ -17,7 +17,7 @@
  * contrary, please update.
  *
  * Configuration options:
- * [0] - I/O port base base address
+ * [0] - I/O port base address
  * [1] - IRQ (unused)
  * [2] - Voltage unipolar/bipolar configuration
  *	0 == unipolar 5V  (0V -- +5V)
drivers/staging/vme/devices/vme_user.h +4 -4
index 19ecb05781cc..3c1564fd9b20 100644
@@ -14,11 +14,11 @@ struct vme_master {
 	__u32 aspace;		/* Address Space */
 	__u32 cycle;		/* Cycle properties */
 	__u32 dwidth;		/* Maximum Data Width */
-#if 0
+
 	char prefetchenable;		/* Prefetch Read Enable State */
 	int prefetchsize;		/* Prefetch Read Size (Cache Lines) */
 	char wrpostenable;		/* Write Post State */
-#endif
+
 } __packed;
 
 /*
@@ -35,11 +35,11 @@ struct vme_slave {
 	__u64 size;		/* Window Size */
 	__u32 aspace;		/* Address Space */
 	__u32 cycle;		/* Cycle properties */
-#if 0
+
 	char wrpostenable;		/* Write Post State */
 	char rmwlock;			/* Lock PCI during RMW Cycles */
 	char data64bitcapable;		/* non-VMEbus capable of 64-bit Data */
-#endif
+
 } __packed;
 
 struct vme_irq_id {
Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 1 line · vaatsalya shrivastava

Warning found by checkpatch.pl script.

Please be specific as to what you did.

Quoted 2 lines

"V" and "S"?

Quoted 10 lines
---
 drivers/comedi/drivers/dt2815.c        | 2 +-
 drivers/staging/vme/devices/vme_user.h | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/comedi/drivers/dt2815.c +0 -0
index 5906f32aa01f..2be240630bbd 100644

drivers/comedi/drivers/dt2815.c line 20

Quoted 5 lines
drivers/comedi/drivers/dt2815.c +1 -1
@@ -17,7 +17,7 @@
  * contrary, please update.
  *
  * Configuration options:
- * [0] - I/O port base base address
+ * [0] - I/O port base address

The original is correct.

drivers/staging/vme/devices/vme_user.h

Quoted 7 lines
drivers/comedi/drivers/dt2815.c +0 -0
  * [1] - IRQ (unused)
  * [2] - Voltage unipolar/bipolar configuration
  *	0 == unipolar 5V  (0V -- +5V)
drivers/staging/vme/devices/vme_user.h +0 -0
index 19ecb05781cc..3c1564fd9b20 100644

This is not a comedi driver.

drivers/staging/vme/devices/vme_user.h struct vme_master { · line 17

Quoted 6 lines
drivers/staging/vme/devices/vme_user.h +1 -1
@@ -14,11 +14,11 @@ struct vme_master {
 	__u32 aspace;		/* Address Space */
 	__u32 cycle;		/* Cycle properties */
 	__u32 dwidth;		/* Maximum Data Width */
-#if 0
+

You can not just remove these lines, please realize what you are doing.

thanks,

greg k-h