summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-06-01 13:03:12 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:52:20 -0300
commitfcc8e7d8c0e228cf032de0df049a91d5d2bfd0e9 (patch)
treee2792d52a145f34eb29c7299885fb9ab34506a83
parenta34ff6cdbb464b3e37f0cbb6b0cff9dab4ee057b (diff)
dvb_net: Simplify the code if DVB NET is not defined
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/dvb-core/dvb_net.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_net.h b/drivers/media/dvb/dvb-core/dvb_net.h
index cfd2c46bd5d..1e53acd50cf 100644
--- a/drivers/media/dvb/dvb-core/dvb_net.h
+++ b/drivers/media/dvb/dvb-core/dvb_net.h
@@ -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_device *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