summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2018-03-08 19:35:24 -0300
committerLuiz Souza <luiz@netgate.com>2018-03-08 21:51:14 -0600
commitb3b184d0afe6bd05367dd44abf060aeb94e626f3 (patch)
treeeba10fa061bba54f61768842592f0afe751c16b0 /sys
parent2c641c613c7994f7ba296c4d248b5295cfaab572 (diff)
downloadFreeBSD-src-b3b184d0afe6bd05367dd44abf060aeb94e626f3.zip
FreeBSD-src-b3b184d0afe6bd05367dd44abf060aeb94e626f3.tar.gz
Return the actual error, if any, on etherswitch_iowrite().
(cherry picked from commit d86d52695f351e7c49f94582d1d10d80f587c7f6)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/etherswitch/etherswitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/etherswitch/etherswitch.c b/sys/dev/etherswitch/etherswitch.c
index 0d4d18b..1f4b0dc 100644
--- a/sys/dev/etherswitch/etherswitch.c
+++ b/sys/dev/etherswitch/etherswitch.c
@@ -295,7 +295,7 @@ etherswitchiowrite(struct cdev *cdev, struct uio *uio, int ioflag)
break;
}
- return (0);
+ return (error);
}
MODULE_VERSION(etherswitch, 1);
OpenPOWER on IntegriCloud