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]
Unified · Split
| @@ -381,7 +381,7 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len ) · 380 unmodified lines | |||
| 381 | printk(KERN_WARNING "%lu: Invalid TS cell: SYNC %#x, TEI %u, SC %#x.\n", | 381 | printk(KERN_WARNING "%lu: Invalid TS cell: SYNC %#x, TEI %u, SC %#x.\n", |
| 382 | priv->ts_count, ts[0], | 382 | priv->ts_count, ts[0], |
| 383 | (ts[1] & TS_TEI) >> 7, | 383 | (ts[1] & TS_TEI) >> 7, |
| 384 | (ts[3] & 0xC0) >> 6); | 384 | (ts[3] & TS_SC) >> 6); |
| 385 | 385 | ||
| 386 | /* Drop partly decoded SNDU, reset state, resync on PUSI. */ | 386 | /* Drop partly decoded SNDU, reset state, resync on PUSI. */ |
| 387 | if (priv->ule_skb) { | 387 | if (priv->ule_skb) { |