diff options
author | Thadeu Lima de Souza Cascardo <[email protected]> | 2009-06-25 14:41:24 +0100 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-06-25 11:24:26 -0700 |
commit | 42dd2aa6496a2e87e496aac5494d2e1d6096c85b (patch) | |
tree | 81ef166b1155f557574972d6452dfb2d7a1943ba /tools/perf/util/trace-event-scripting.c | |
parent | a37f6b84c4f3d3ca61634a7b36bf64c6ea452271 (diff) |
acm: Return ENODEV instead of EINVAL when trying to open ACM device.
This is required, otherwise a user will get a EINVAL while opening a
non-existing device, instead of ENODEV.
This is what I get with this patch applied now instead of an "Invalid
argument".
cascardo@vespa:~$ cat /dev/ttyACM0
cat: /dev/ttyACM0: No such device
cascardo@vespa:~$
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions