diff options
author | Mike Isely <isely@pobox.com> | 2006-06-25 18:04:13 -0500 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2006-06-25 18:04:13 -0500 |
commit | 314a434f53ec8071ad6fd9bd0b47350af0298b1d (patch) | |
tree | e49cb706ba9cb42a7d5b0b9d691c2071a70f746d /linux | |
parent | 0a9c4d566491359f77338d7e54801f4f47d3b3dc (diff) | |
download | mediapointer-dvb-s2-314a434f53ec8071ad6fd9bd0b47350af0298b1d.tar.gz mediapointer-dvb-s2-314a434f53ec8071ad6fd9bd0b47350af0298b1d.tar.bz2 |
Don't print empty enum values in pvrusb2-sysfs.c
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c index 075882877..4fd25e6d5 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c @@ -190,6 +190,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'; |