aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-06-25 19:04:13 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-26 23:17:19 -0400
commit4588677121d894ec989e938129da4ae02d332b6c (patch)
treeddcdeddb8d5cc40d318693ebb7b48ab2164d2232 /drivers
parenteacbe7c51f0fe770252e03ef2433a1ed4c990a17 (diff)
V4L/DVB (4233): Don't print empty enum values in pvrusb2-sysfs.c
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-sysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
index c756b9845056..b999d4eaefff 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
@@ -189,6 +189,7 @@ static ssize_t show_enum(int id,struct class_device *class_dev,char *buf)
189 bcnt = 0; 189 bcnt = 0;
190 for (val = 0; val < ecnt; val++) { 190 for (val = 0; val < ecnt; val++) {
191 pvr2_ctrl_get_valname(cptr,val,buf+bcnt,PAGE_SIZE-bcnt,&ccnt); 191 pvr2_ctrl_get_valname(cptr,val,buf+bcnt,PAGE_SIZE-bcnt,&ccnt);
192 if (!ccnt) continue;
192 bcnt += ccnt; 193 bcnt += ccnt;
193 if (bcnt >= PAGE_SIZE) break; 194 if (bcnt >= PAGE_SIZE) break;
194 buf[bcnt] = '\n'; 195 buf[bcnt] = '\n';