Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
fcc8e7d8
Commit
fcc8e7d8
authored
Jun 01, 2011
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvb_net: Simplify the code if DVB NET is not defined
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
a34ff6cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
drivers/media/dvb/dvb-core/dvb_net.h
drivers/media/dvb/dvb-core/dvb_net.h
+3
-10
No files found.
drivers/media/dvb/dvb-core/dvb_net.h
View file @
fcc8e7d8
...
...
@@ -42,32 +42,25 @@ struct dvb_net {
struct
dmx_demux
*
demux
;
};
void
dvb_net_release
(
struct
dvb_net
*
);
int
dvb_net_init
(
struct
dvb_adapter
*
,
struct
dvb_net
*
,
struct
dmx_demux
*
);
#endif
#ifndef CONFIG_DVB_NET
struct
dvb_dev_stub
;
#else
struct
dvb_net
{
struct
dvb_dev
_stub
*
dvbdev
;
struct
dvb_dev
ice
*
dvbdev
;
};
static
inline
void
dvb_net_release
(
struct
dvb_net
*
dvbnet
)
{
dvbnet
->
dvbdev
=
0
;
}
static
inline
int
dvb_net_init
(
struct
dvb_adapter
*
adap
,
struct
dvb_net
*
dvbnet
,
struct
dmx_demux
*
dmx
)
{
dvbnet
->
dvbdev
=
(
void
*
)
1
;
return
0
;
}
#endif
#endif
/* ifdef CONFIG_DVB_NET */
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment