Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] media: dvb_core: replace a magic number by a macro

It's better to use TS_SC instead of magic number 0xC0.

[m.chehab@samsung.com: patch rebased and message rewritten, as this
patch conflicted with an already applied patch]

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Dan Carpenter and committed by
Mauro Carvalho Chehab
37314528 fab9d30b

+1 -1
+1 -1
drivers/media/dvb-core/dvb_net.c
··· 381 381 printk(KERN_WARNING "%lu: Invalid TS cell: SYNC %#x, TEI %u, SC %#x.\n", 382 382 priv->ts_count, ts[0], 383 383 (ts[1] & TS_TEI) >> 7, 384 - (ts[3] & 0xC0) >> 6); 384 + (ts[3] & TS_SC) >> 6); 385 385 386 386 /* Drop partly decoded SNDU, reset state, resync on PUSI. */ 387 387 if (priv->ule_skb) {