[media] fc2580: small improvements for chip id check
authorAntti Palosaari <crope@iki.fi>
Fri, 21 Sep 2012 23:28:43 +0000 (20:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 27 Sep 2012 18:15:33 +0000 (15:15 -0300)
* better readability
* make checkpatch.pl happy
* few bytes smaller binary footprint

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/fc2580.c

index 51bc39ca0090710f96d815f705c2ae6a625fc94c..7db32ec4bd0927815f09e0c9197a90ff51f1fc8f 100644 (file)
@@ -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;
        }