Skip to contentSkip to conversation

media: technisat-usb2: remove unused EEPROM dump debug helper

PATCH New Zain Aboobacker 1 participant 1 message Sep 26 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: technisat-usb2: remove unused EEPROM dump debug helper

technisat_usb2_eeprom_dump() is compiled out with #if 0 and has no callers. Remove the dead code.

Assisted-by Claude:claude-opus-5-5
---
 drivers/media/usb/dvb-usb/technisat-usb2.c | 21 ---------------------
 1 file changed, 21 deletions(-)
drivers/media/usb/dvb-usb/technisat-usb2.c +0 -21
index 1e43aab2bc27..16bf3c99ddfc 100644
@@ -384,27 +384,6 @@ static int technisat_usb2_power_ctrl(struct dvb_usb_device *d, int level)
 }
 
 /* mac address reading - from the eeprom */
-#if 0
-static void technisat_usb2_eeprom_dump(struct dvb_usb_device *d)
-{
-	u8 reg;
-	u8 b[16];
-	int i, j;
-
-	/* full EEPROM dump */
-	for (j = 0; j < 256 * 4; j += 16) {
-		reg = j;
-		if (technisat_usb2_i2c_access(d->udev, 0x50 + j / 256, &reg, 1, b, 16) != 0)
-			break;
-
-		deb_eeprom("EEPROM: %01x%02x: ", j / 256, reg);
-		for (i = 0; i < 16; i++)
-			deb_eeprom("%02x ", b[i]);
-		deb_eeprom("\n");
-	}
-}
-#endif
-
 static u8 technisat_usb2_calc_lrc(const u8 *b, u16 length)
 {
 	u8 lrc = 0;
Signature · 1 line
2.53.0