Skip to contentSkip to conversation

comedi: remove redundant assignment to variable buffer_config

PATCH New Colin Ian King 1 participant 1 message Jan 30, 2022

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

PATCH 1/1 comedi: remove redundant assignment to variable buffer_config

Variable buffer_config is being assigned a value that is never read, it is being re-assigned later on. The assignment is redundant and can be removed.

---
 drivers/comedi/drivers/pcm3724.c | 1 -
 1 file changed, 1 deletion(-)
drivers/comedi/drivers/pcm3724.c +0 -1
index e4103f9eeced..ca8bef54dacc 100644
@@ -93,7 +93,6 @@ static void do_3724_config(struct comedi_device *dev,
 	unsigned long port_8255_cfg;
 
 	config = I8255_CTRL_CW;
-	buffer_config = 0;
 
 	/* 1 in io_bits indicates output, 1 in config indicates input */
 	if (!(s->io_bits & 0x0000ff))
Signature · 1 line
2.34.1