summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2004-06-20 13:50:50 +0000
committermarkm <markm@FreeBSD.org>2004-06-20 13:50:50 +0000
commit850ccbe37b878ac825850729d1c0a717cddb02e3 (patch)
treea7f70880778cf701d6ef26db179282b04f7841a4 /sys
parentece4a2cdf8573a878c5e8982141176b7125a73c6 (diff)
downloadFreeBSD-src-850ccbe37b878ac825850729d1c0a717cddb02e3.zip
FreeBSD-src-850ccbe37b878ac825850729d1c0a717cddb02e3.tar.gz
Micro-tweaking.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/null/null.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/dev/null/null.c b/sys/dev/null/null.c
index 710d4b1..14841d3 100644
--- a/sys/dev/null/null.c
+++ b/sys/dev/null/null.c
@@ -1,5 +1,6 @@
/*-
* Copyright (c) 2000 Mark R. V. Murray & Jeroen C. van Gelderen
+ * Copyright (c) 2001-2004 Mark R. V. Murray
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -76,7 +77,8 @@ static int
null_write(struct cdev *dev __unused, struct uio *uio, int flags __unused)
{
uio->uio_resid = 0;
- return 0;
+
+ return (0);
}
/* ARGSUSED */
@@ -105,7 +107,8 @@ zero_read(struct cdev *dev __unused, struct uio *uio, int flags __unused)
c = uio->uio_resid < PAGE_SIZE ? uio->uio_resid : PAGE_SIZE;
error = uiomove(zbuf, c, uio);
}
- return error;
+
+ return (error);
}
/* ARGSUSED */
@@ -121,20 +124,20 @@ null_modevent(module_t mod __unused, int type, void *data __unused)
GID_WHEEL, 0666, "zero");
null_dev = make_dev(&null_cdevsw, NULL_MINOR, UID_ROOT,
GID_WHEEL, 0666, "null");
- return 0;
+ break;
case MOD_UNLOAD:
destroy_dev(null_dev);
destroy_dev(zero_dev);
free(zbuf, M_TEMP);
- return 0;
+ break;
case MOD_SHUTDOWN:
- return 0;
+ break;
- default:
- return EOPNOTSUPP;
}
+
+ return (0);
}
DEV_MODULE(null, null_modevent, NULL);
OpenPOWER on IntegriCloud