]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5082): Pvrusb2: Slight debug printing efficiency fixup
authorMike Isely <isely@pobox.com>
Sat, 20 Jan 2007 03:10:55 +0000 (00:10 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:38 +0000 (13:34 -0200)
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-hdw.c

index 4672199ae92d7c61dfb9e2c8fd5db278c3cca21c..776125491c8128028119094aa39aeacfdf57445f 100644 (file)
@@ -2443,10 +2443,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;