linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media: dvb: remove redundant assignment
@ 2025-08-17  4:40 Qianqiang Liu
  0 siblings, 0 replies; only message in thread
From: Qianqiang Liu @ 2025-08-17  4:40 UTC (permalink / raw)
  To: mchehab; +Cc: patrick.boettcher, linux-media, linux-kernel, Qianqiang Liu

The field adap->demux.filternum is immediately overwritten with
adap->max_feed_count, so the initial assignment to 0 is redundant
and can be removed.

Signed-off-by: Qianqiang Liu <qianqiang.liu@163.com>
---
 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
index f1c79f351ec8..96fd42ad7b6f 100644
--- a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
+++ b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
@@ -465,7 +465,6 @@ static int dvb_usbv2_adapter_dvb_init(struct dvb_usb_adapter *adap)
 
 	adap->demux.dmx.capabilities = DMX_TS_FILTERING | DMX_SECTION_FILTERING;
 	adap->demux.priv             = adap;
-	adap->demux.filternum        = 0;
 	adap->demux.filternum        = adap->max_feed_count;
 	adap->demux.feednum          = adap->demux.filternum;
 	adap->demux.start_feed       = dvb_usb_start_feed;
-- 
2.47.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-17  4:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-17  4:40 [PATCH] media: dvb: remove redundant assignment Qianqiang Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).