diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2009-05-09 20:06:39 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2009-05-09 20:06:39 +0000 |
commit | 2b6abb1dbe31d29cc5a63fc0762793249fb56a27 (patch) | |
tree | 14584a458e5c0737d75b76c8c62c4220c888f9d3 /sys/dev/usb | |
parent | a2237f975c394f28ea5d82a829257ec5bcc87c96 (diff) |
Return -1 from unused udl_mmap() function instead of 0.
Spotted by miod@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/udl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c index 696946981c9..3b4869d5187 100644 --- a/sys/dev/usb/udl.c +++ b/sys/dev/usb/udl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udl.c,v 1.1 2009/05/09 19:23:07 mglocker Exp $ */ +/* $OpenBSD: udl.c,v 1.2 2009/05/09 20:06:38 mglocker Exp $ */ /* * Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org> @@ -361,7 +361,7 @@ udl_mmap(void *v, off_t off, int prot) DPRINTF(1, "%s: %s\n", DN(sc), FUNC); - return (NULL); + return (-1); } int |