From 0a027ed49a334a9fe60e38f19d3dd40fdf9d73ca Mon Sep 17 00:00:00 2001 From: maxim Date: Wed, 9 Jun 2004 17:10:41 +0000 Subject: Style. --- share/examples/kld/cdev/module/cdev.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'share/examples/kld/cdev') diff --git a/share/examples/kld/cdev/module/cdev.c b/share/examples/kld/cdev/module/cdev.c index 0423803..45c3736 100644 --- a/share/examples/kld/cdev/module/cdev.c +++ b/share/examples/kld/cdev/module/cdev.c @@ -67,9 +67,8 @@ * * $FreeBSD$ */ -#include -#include #include +#include #include #include #include @@ -138,7 +137,7 @@ mydev_ioctl(dev_t dev, u_long cmd, caddr_t arg, int mode, struct thread *td) error = EINVAL; break; } - return error; + return (error); } /* @@ -161,7 +160,7 @@ mydev_write(dev_t dev, struct uio *uio, int ioflag) } /* - * The mydev_read function just takes the buf that was saved + * The mydev_read function just takes the buf that was saved * via mydev_write() and returns it to userland for * accessing. */ @@ -174,7 +173,7 @@ mydev_read(dev_t dev, struct uio *uio, int ioflag) dev2udev(dev), uio, ioflag); if (len <= 0) { - err = -1; + err = -1; } else { /* copy buf to userland */ copystr(&buf, uio->uio_iov->iov_base, 513, &len); } -- cgit v1.1