Skip to content

Commit

Permalink
V4L/DVB: cx18-alsa: codingstyle cleanup
Browse files Browse the repository at this point in the history
Remove some dead code and make a PCM specific module debug parameter to avoid
an extern reference.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent f8bd9d2 commit 71036ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/media/video/cx18/cx18-alsa-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@
#include "cx18-fileops.h"
#include "cx18-alsa.h"

extern int cx18_alsa_debug;
static unsigned int pcm_debug;
module_param(pcm_debug, int, 0644);
MODULE_PARM_DESC(pcm_debug, "enable debug messages for pcm");

#define dprintk(fmt, arg...) do { \
if (cx18_alsa_debug) \
printk(KERN_INFO "cx18-alsa %s: " fmt, \
if (pcm_debug) \
printk(KERN_INFO "cx18-alsa-pcm %s: " fmt, \
__func__, ##arg); \
} while (0)

Expand Down

0 comments on commit 71036ef

Please sign in to comment.