Skip to contentSkip to conversation

staging: media: av7110: remove dead code in av7110.c

PATCH In review Tomasz Unger 2 participants 2 messages Mar 19 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 staging: media: av7110: remove dead code in av7110.c

Remove two commented-out lines of dead code that serve no purpose.

---
Checked with scripts/checkpatch.pl - no errors, no warnings.

---
 drivers/staging/media/av7110/av7110.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/media/av7110/av7110.c +0 -2
index 607992100baf..490963c0ccce 100644
@@ -314,7 +314,6 @@ static int DvbDmxFilterCallback(u8 *buffer1, size_t buffer1_len,
 	}
 }
 
-//#define DEBUG_TIMING
 static inline void print_time(char *s)
 {
 #ifdef DEBUG_TIMING
@@ -762,7 +761,6 @@ static int StartHWFilter(struct dvb_demux_filter *dvbdmxfilter)
 	u16 buf[20];
 	int ret, i;
 	u16 handle;
-//	u16 mode = 0x0320;
 	u16 mode = 0xb96a;
 
 	dprintk(4, "%p\n", av7110);

---
base-commit: f3f5d52d6bcdf190891601a11910cdd596963c1e
change-id: 20260319-av7110-dead-code-ef974a5d7faf

Best regards,

Signature · 1 line
Tomasz Unger <[email protected]>
#2 lore raw
Quoted 14 lines · Tomasz Unger

Remove two commented-out lines of dead code that serve no purpose.

---
Checked with scripts/checkpatch.pl - no errors, no warnings.

---
 drivers/staging/media/av7110/av7110.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/media/av7110/av7110.c +0 -0
index 607992100baf..490963c0ccce 100644

drivers/staging/media/av7110/av7110.c static int DvbDmxFilterCallback(u8 *buffer1, size_t buffer1_len, · line 319

Quoted 7 lines
drivers/staging/media/av7110/av7110.c +0 -1
@@ -314,7 +314,6 @@ static int DvbDmxFilterCallback(u8 *buffer1, size_t buffer1_len,
 	}
 }
 
-//#define DEBUG_TIMING
 static inline void print_time(char *s)
 {
 #ifdef DEBUG_TIMING

^^^^^^^^^^^^^^^^^^^
Get rid of this stuff too.

drivers/staging/media/av7110/av7110.c static int StartHWFilter(struct dvb_demux_filter *dvbdmxfilter) · line 765

Quoted 5 lines
drivers/staging/media/av7110/av7110.c +0 -1
@@ -762,7 +761,6 @@ static int StartHWFilter(struct dvb_demux_filter *dvbdmxfilter)
 	u16 buf[20];
 	int ret, i;
 	u16 handle;
-//	u16 mode = 0x0320;

At that point, you'll probably want to split it into two patches.

regards,
dan carpenter

Quoted 4 lines
drivers/staging/media/av7110/av7110.c +0 -0
 	u16 mode = 0xb96a;
 
 	dprintk(4, "%p\n", av7110);