Skip to content

Commit 43c3ea3

Browse files
Frank Schaefermchehab
authored andcommitted
[media] em28xx: remove dead code line from em28xx_audio_setup()
Setting the value of the chip config register to EM28XX_CHIPCFG_AC97 in case of a read error is a leftover from the past which is no longer needed. Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent 920f1e4 commit 43c3ea3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/media/usb/em28xx/em28xx-core.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,8 @@ int em28xx_audio_setup(struct em28xx *dev)
520520
/* See how this device is configured */
521521
cfg = em28xx_read_reg(dev, EM28XX_R00_CHIPCFG);
522522
em28xx_info("Config register raw data: 0x%02x\n", cfg);
523-
if (cfg < 0) {
524-
/* Register read error? */
525-
cfg = EM28XX_CHIPCFG_AC97; /* Be conservative */
523+
if (cfg < 0) { /* Register read error */
524+
/* Be conservative */
526525
dev->int_audio_type = EM28XX_INT_AUDIO_AC97;
527526
} else if ((cfg & EM28XX_CHIPCFG_AUDIOMASK) == 0x00) {
528527
/* The device doesn't have vendor audio at all */

0 commit comments

Comments
 (0)