Commit 132f56fb authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

[media] fc2580: small improvements for chip id check



* better readability
* make checkpatch.pl happy
* few bytes smaller binary footprint

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2347e683
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -498,7 +498,11 @@ struct dvb_frontend *fc2580_attach(struct dvb_frontend *fe,

	dev_dbg(&priv->i2c->dev, "%s: chip_id=%02x\n", __func__, chip_id);

	if ((chip_id != 0x56) && (chip_id != 0x5a)) {
	switch (chip_id) {
	case 0x56:
	case 0x5a:
		break;
	default:
		goto err;
	}