summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-01-19 21:10:55 -0600
committerMike Isely <isely@pobox.com>2007-01-19 21:10:55 -0600
commitdc7ea31ca5663ecd58e75c15df633502ba51790c (patch)
treec10601c5a5a048eaf7488685213874305e9c4a02 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
parente35c602656fcea0704973c72c96f7f41ebd66d61 (diff)
downloadmediapointer-dvb-s2-dc7ea31ca5663ecd58e75c15df633502ba51790c.tar.gz
mediapointer-dvb-s2-dc7ea31ca5663ecd58e75c15df633502ba51790c.tar.bz2
pvrusb2: Slight debug printing efficiency fixup
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index dad054138..4f148dd00 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -2470,10 +2470,9 @@ static int pvr2_hdw_commit_ctl_internal(struct pvr2_hdw *hdw)
cptr = hdw->controls + idx;
if (cptr->info->is_dirty == 0) continue;
if (!cptr->info->is_dirty(cptr)) continue;
- if (!commit_flag) {
- commit_flag = !0;
- }
+ commit_flag = !0;
+ if (!(pvrusb2_debug & PVR2_TRACE_CTL)) continue;
bcnt = scnprintf(buf,sizeof(buf),"\"%s\" <-- ",
cptr->info->name);
value = 0;