summaryrefslogtreecommitdiffstats
path: root/sys/dev/smbus/smb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/smbus/smb.c')
-rw-r--r--sys/dev/smbus/smb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c
index 331e6b9..7bf1af6 100644
--- a/sys/dev/smbus/smb.c
+++ b/sys/dev/smbus/smb.c
@@ -171,7 +171,7 @@ smbwrite(dev_t dev, struct uio * uio, int ioflag)
{
/* not supported */
- return (ENODEV);
+ return (EINVAL);
}
static int
@@ -179,7 +179,7 @@ smbread(dev_t dev, struct uio * uio, int ioflag)
{
/* not supported */
- return (ENODEV);
+ return (EINVAL);
}
static int
OpenPOWER on IntegriCloud