aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook/uio-howto.tmpl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-01-16 13:05:32 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 13:19:51 -0500
commit93ce83b6e0ffe8d48dae46bc0983dd3f01ec7e32 (patch)
treee14b50899ec77a68f932912e5dfb04fb0f192040 /Documentation/DocBook/uio-howto.tmpl
parent25c22d5bead5b0211f3ecc84fd6152dfdf95c75d (diff)
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/DocBook/uio-howto.tmpl')
-rw-r--r--Documentation/DocBook/uio-howto.tmpl2
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()
984 return errno; 984 return errno;
985 } 985 }
986 configfd = open(&quot;/sys/class/uio/uio0/device/config&quot;, O_RDWR); 986 configfd = open(&quot;/sys/class/uio/uio0/device/config&quot;, O_RDWR);
987 if (uiofd &lt; 0) { 987 if (configfd &lt; 0) {
988 perror(&quot;config open:&quot;); 988 perror(&quot;config open:&quot;);
989 return errno; 989 return errno;
990 } 990 }