diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2008-11-22 13:33:06 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2008-11-22 13:33:06 +0000 |
| commit | bcfbcdca9c77fe4f4a65369cc22357df95f4af4b (patch) | |
| tree | 7bd88ff5cd2debfd2d58f7e0f1930732a339eea9 /cddl | |
| parent | 36aca13fdfa5dc78236226584eb9974586fca435 (diff) | |
Notes
Diffstat (limited to 'cddl')
| -rw-r--r-- | cddl/compat/opensolaris/misc/deviceid.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cddl/compat/opensolaris/misc/deviceid.c b/cddl/compat/opensolaris/misc/deviceid.c index f37b1d6d3563e..e67d94aad506b 100644 --- a/cddl/compat/opensolaris/misc/deviceid.c +++ b/cddl/compat/opensolaris/misc/deviceid.c @@ -94,11 +94,7 @@ int devid_get(int fd, ddi_devid_t *retdevid) { - if (ioctl(fd, DIOCGIDENT, retdevid->devid) == -1) - return (errno); - if (retdevid->devid[0] == '\0') - return (ENOENT); - return (0); + return (ENOENT); } int |
