diff options
author | 2013-01-16 10:05:32 -0800 | |
---|---|---|
committer | 2013-01-17 10:19:51 -0800 | |
commit | 93ce83b6e0ffe8d48dae46bc0983dd3f01ec7e32 (patch) | |
tree | e14b50899ec77a68f932912e5dfb04fb0f192040 /Documentation | |
parent | misc: st_core: Error triggered by convert "char" to "int" (diff) | |
download | linux-93ce83b6e0ffe8d48dae46bc0983dd3f01ec7e32.tar.gz linux-93ce83b6e0ffe8d48dae46bc0983dd3f01ec7e32.tar.bz2 linux-93ce83b6e0ffe8d48dae46bc0983dd3f01ec7e32.zip |
uio-howto: example bug
Bug in demo program, checking wrong return value
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Cc: "Hans J. Koch" <hjk@hansjkoch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/DocBook/uio-howto.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/DocBook/uio-howto.tmpl b/Documentation/DocBook/uio-howto.tmpl index ddb05e98af0d..95618159e29b 100644 --- a/Documentation/DocBook/uio-howto.tmpl +++ b/Documentation/DocBook/uio-howto.tmpl @@ -984,7 +984,7 @@ int main() return errno; } configfd = open("/sys/class/uio/uio0/device/config", O_RDWR); - if (uiofd < 0) { + if (configfd < 0) { perror("config open:"); return errno; } |