From: Antti Palosaari Date: Fri, 21 Sep 2012 23:28:43 +0000 (-0300) Subject: [media] fc2580: small improvements for chip id check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=132f56fb3c83c032cd75cd99c2967905e65f8684;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] fc2580: small improvements for chip id check * better readability * make checkpatch.pl happy * few bytes smaller binary footprint Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/tuners/fc2580.c b/drivers/media/tuners/fc2580.c index 51bc39ca0090..7db32ec4bd09 100644 --- a/drivers/media/tuners/fc2580.c +++ b/drivers/media/tuners/fc2580.c @@ -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; }