Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a648fbb authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

[media] m88ds3103: remove dead code 2nd part



Coverity CID 1166051: Logically dead code (DEADCODE)

TS clock calculation could be more accurate, but as it is not,
remove those unused clock speeds.

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 672e0248
Loading
Loading
Loading
Loading
+0 −12
Original line number Original line Diff line number Diff line
@@ -428,18 +428,10 @@ static int m88ds3103_set_frontend(struct dvb_frontend *fe)
		goto err;
		goto err;


	switch (target_mclk) {
	switch (target_mclk) {
	case 72000:
		u8tmp1 = 0x00; /* 0b00 */
		u8tmp2 = 0x03; /* 0b11 */
		break;
	case 96000:
	case 96000:
		u8tmp1 = 0x02; /* 0b10 */
		u8tmp1 = 0x02; /* 0b10 */
		u8tmp2 = 0x01; /* 0b01 */
		u8tmp2 = 0x01; /* 0b01 */
		break;
		break;
	case 115200:
		u8tmp1 = 0x01; /* 0b01 */
		u8tmp2 = 0x01; /* 0b01 */
		break;
	case 144000:
	case 144000:
		u8tmp1 = 0x00; /* 0b00 */
		u8tmp1 = 0x00; /* 0b00 */
		u8tmp2 = 0x01; /* 0b01 */
		u8tmp2 = 0x01; /* 0b01 */
@@ -448,10 +440,6 @@ static int m88ds3103_set_frontend(struct dvb_frontend *fe)
		u8tmp1 = 0x03; /* 0b11 */
		u8tmp1 = 0x03; /* 0b11 */
		u8tmp2 = 0x00; /* 0b00 */
		u8tmp2 = 0x00; /* 0b00 */
		break;
		break;
	default:
		dev_dbg(&priv->i2c->dev, "%s: invalid target_mclk\n", __func__);
		ret = -EINVAL;
		goto err;
	}
	}


	ret = m88ds3103_wr_reg_mask(priv, 0x22, u8tmp1 << 6, 0xc0);
	ret = m88ds3103_wr_reg_mask(priv, 0x22, u8tmp1 << 6, 0xc0);