diff options
author | Mike Isely <isely@pobox.com> | 2006-06-25 20:04:13 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-27 00:17:19 -0300 |
commit | 4588677121d894ec989e938129da4ae02d332b6c (patch) | |
tree | ddcdeddb8d5cc40d318693ebb7b48ab2164d2232 /drivers/media/video/pvrusb2 | |
parent | eacbe7c51f0fe770252e03ef2433a1ed4c990a17 (diff) | |
download | blackbird-op-linux-4588677121d894ec989e938129da4ae02d332b6c.tar.gz blackbird-op-linux-4588677121d894ec989e938129da4ae02d332b6c.zip |
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/media/video/pvrusb2')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-sysfs.c | 1 |
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) bcnt = 0; for (val = 0; val < ecnt; val++) { pvr2_ctrl_get_valname(cptr,val,buf+bcnt,PAGE_SIZE-bcnt,&ccnt); + if (!ccnt) continue; bcnt += ccnt; if (bcnt >= PAGE_SIZE) break; buf[bcnt] = '\n'; |