projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb30e12
)
get_media_devices: Don't complain if there are no devices of a certain class
author
Hans de Goede
<hdegoede@redhat.com>
Sat, 18 Jun 2011 13:29:45 +0000
(15:29 +0200)
committer
Hans de Goede
<hdegoede@redhat.com>
Sat, 18 Jun 2011 13:31:37 +0000
(15:31 +0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
utils/libmedia_dev/get_media_devices.c
patch
|
blob
|
history
diff --git
a/utils/libmedia_dev/get_media_devices.c
b/utils/libmedia_dev/get_media_devices.c
index
21c9ce6
..
b1f8bc7
100644
(file)
--- a/
utils/libmedia_dev/get_media_devices.c
+++ b/
utils/libmedia_dev/get_media_devices.c
@@
-136,7
+136,6
@@
static int get_class(char *class,
snprintf(dname, PATH_MAX, "/sys/class/%s", class);
dir = opendir(dname);
if (!dir) {
- perror(dname);
return 0;
}
for (entry = readdir(dir); entry; entry = readdir(dir)) {