Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93ce83b6 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Greg Kroah-Hartman
Browse files

uio-howto: example bug



Bug in demo program, checking wrong return value

Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Cc: "Hans J. Koch" <hjk@hansjkoch.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 25c22d5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -984,7 +984,7 @@ int main()
		return errno;
	}
	configfd = open(&quot;/sys/class/uio/uio0/device/config&quot;, O_RDWR);
	if (uiofd &lt; 0) {
	if (configfd &lt; 0) {
		perror(&quot;config open:&quot;);
		return errno;
	}