summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disklabel.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-09-16 13:43:00 +0000
committerphk <phk@FreeBSD.org>2000-09-16 13:43:00 +0000
commitfc5495e38e718593b4b118d08cfd5bfaaec0324e (patch)
tree288e533daff3fc8bb716c9d5d094e36bb94cc3bc /sys/kern/subr_disklabel.c
parentd927c81a820d92ba849c803c943f34c82608d3f2 (diff)
downloadFreeBSD-src-fc5495e38e718593b4b118d08cfd5bfaaec0324e.zip
FreeBSD-src-fc5495e38e718593b4b118d08cfd5bfaaec0324e.tar.gz
Turn dkcksum() into an __inline function.
Change its type to u_int_16_t.
Diffstat (limited to 'sys/kern/subr_disklabel.c')
-rw-r--r--sys/kern/subr_disklabel.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c
index ed68f38..d7d5dce 100644
--- a/sys/kern/subr_disklabel.c
+++ b/sys/kern/subr_disklabel.c
@@ -324,23 +324,6 @@ done:
}
/*
- * Compute checksum for disk label.
- */
-u_int
-dkcksum(lp)
- register struct disklabel *lp;
-{
- register u_short *start, *end;
- register u_short sum = 0;
-
- start = (u_short *)lp;
- end = (u_short *)&lp->d_partitions[lp->d_npartitions];
- while (start < end)
- sum ^= *start++;
- return (sum);
-}
-
-/*
* Disk error is the preface to plaintive error messages
* about failing disk transfers. It prints messages of the form
OpenPOWER on IntegriCloud