Skip to content

Commit 330d135

Browse files
committed
media: vidtv: remove some unused functions
Right now, there's no need to access the length of some tables. So, drop the unused functions. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent a8bd461 commit 330d135

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

drivers/media/test-drivers/vidtv/vidtv_psi.c

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -89,41 +89,6 @@ static void vidtv_psi_update_version_num(struct vidtv_psi_table_header *h)
8989
h->version++;
9090
}
9191

92-
static u16
93-
vidtv_psi_sdt_serv_get_desc_loop_len(struct vidtv_psi_table_sdt_service *s)
94-
{
95-
u16 mask;
96-
u16 ret;
97-
98-
mask = GENMASK(11, 0);
99-
100-
ret = be16_to_cpu(s->bitfield) & mask;
101-
return ret;
102-
}
103-
104-
static u16
105-
vidtv_psi_pmt_stream_get_desc_loop_len(struct vidtv_psi_table_pmt_stream *s)
106-
{
107-
u16 mask;
108-
u16 ret;
109-
110-
mask = GENMASK(9, 0);
111-
112-
ret = be16_to_cpu(s->bitfield2) & mask;
113-
return ret;
114-
}
115-
116-
static u16 vidtv_psi_pmt_get_desc_loop_len(struct vidtv_psi_table_pmt *p)
117-
{
118-
u16 mask;
119-
u16 ret;
120-
121-
mask = GENMASK(9, 0);
122-
123-
ret = be16_to_cpu(p->bitfield2) & mask;
124-
return ret;
125-
}
126-
12792
static u16 vidtv_psi_get_sec_len(struct vidtv_psi_table_header *h)
12893
{
12994
u16 mask;

0 commit comments

Comments
 (0)