Skip to content

Commit

Permalink
[media] dvb_usb_v2: use dummy function defines instead stub functions
Browse files Browse the repository at this point in the history
I think it is better (cheaper) to use dummy defines for functions
that has no meaning when remote controller is disabled by Kconfig.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Jan 6, 2013
1 parent 21354c6 commit ef38240
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,8 @@ static int dvb_usbv2_remote_exit(struct dvb_usb_device *d)
return 0;
}
#else
static int dvb_usbv2_remote_init(struct dvb_usb_device *d)
{
return 0;
}

static int dvb_usbv2_remote_exit(struct dvb_usb_device *d)
{
return 0;
}
#define dvb_usbv2_remote_init(args...) 0
#define dvb_usbv2_remote_exit(args...)
#endif

static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buf,
Expand Down

0 comments on commit ef38240

Please sign in to comment.