Skip to contentSkip to conversation

staging: vt6655: drop off byRxMode var in device.h

PATCH Superseded Tommaso Merciai 2 participants 3 messages Dec 20, 2021 – Dec 23, 2021 Staging

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: vt6655: drop off byRxMode var in device.h

Drop off unused variable byRxMode in device.h, this fix following checkpatch.pl check:
CHECK: Avoid CamelCase: <byRxMode>
131: FILE: drivers/staging/vt6655/device.h:131:
unsigned char byRxMode

---
Changes since v1:
- Remove trailing whitespace in changelog as suggested by gregkh

 drivers/staging/vt6655/device.h | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/vt6655/device.h +0 -2
index 4706bde1ec1d..84b1dcf80e47 100644
@@ -128,8 +128,6 @@ struct vnt_private {
 	u32                         memaddr;
 	u32                         ioaddr;
 
-	unsigned char byRxMode;
-
 	spinlock_t                  lock;
 
 	volatile int                iTDUsed[TYPE_MAXTD];
Signature · 1 line
2.25.1
#1 lore raw
Quoted 5 lines · Tommaso Merciai

Drop off unused variable byRxMode in device.h, this fix following checkpatch.pl check:
CHECK: Avoid CamelCase: <byRxMode>
131: FILE: drivers/staging/vt6655/device.h:131:
unsigned char byRxMode

No need to line-wrap this.

But this "problem" is not the real thing you are fixing. The real thing is the issue that this variable is not needed at all. Just say that, no need to justify it with a checkpatch warning, right?

thanks,

greg k-h

#2 lore raw
Quoted 7 lines · Greg Kroah-Hartman
Quoted 5 lines · Tommaso Merciai

Drop off unused variable byRxMode in device.h, this fix following checkpatch.pl check:
CHECK: Avoid CamelCase: <byRxMode>
131: FILE: drivers/staging/vt6655/device.h:131:
unsigned char byRxMode

Quoted 5 lines

No need to line-wrap this.

But this "problem" is not the real thing you are fixing. The real thing is the issue that this variable is not needed at all. Just say that, no need to justify it with a checkpatch warning, right?

Hi Greg,
Thanks for review. I'll fix commit body and resend in v3.

thanks,
tommaso

Quoted 4 lines

thanks,

greg k-h