]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
dvb_net: Simplify the code if DVB NET is not defined
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Jun 2011 16:03:12 +0000 (13:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:52:20 +0000 (17:52 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_net.h

index cfd2c46bd5d90fd8fa1b14c72970643e6b330a2b..1e53acd50cf40fa22d2e15f7d1932aadcbb03df7 100644 (file)
@@ -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