]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[media] media: dvb_core: replace a magic number by a macro
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Oct 2014 15:47:41 +0000 (12:47 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 3 Nov 2014 14:50:08 +0000 (12:50 -0200)
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>
drivers/media/dvb-core/dvb_net.c

index 441814b94eb890151b90fbf40dc6cc61e24c5c71..e4041f074909b96f5e769be2184367bb4b330dcd 100644 (file)
@@ -381,7 +381,7 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
                                printk(KERN_WARNING "%lu: Invalid TS cell: SYNC %#x, TEI %u, SC %#x.\n",
                                       priv->ts_count, ts[0],
                                       (ts[1] & TS_TEI) >> 7,
-                                      (ts[3] & 0xC0) >> 6);
+                                      (ts[3] & TS_SC) >> 6);
 
                                /* Drop partly decoded SNDU, reset state, resync on PUSI. */
                                if (priv->ule_skb) {