diff options
author | 2011-07-26 12:32:14 +0000 | |
---|---|---|
committer | 2011-07-26 12:32:14 +0000 | |
commit | 4444fdd7a333ac3734d5661d18d7abcfd66df6b9 (patch) | |
tree | b898811102a149404c313c6f3e000e665324d929 /sys/kern/subr_disk.c | |
parent | At some point we've switched to the VFP floating-point--unlike FPA (diff) | |
download | wireguard-openbsd-4444fdd7a333ac3734d5661d18d7abcfd66df6b9.tar.xz wireguard-openbsd-4444fdd7a333ac3734d5661d18d7abcfd66df6b9.zip |
No need to byte-swap d_checksum just before setting it to zero.
ok matthew@
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index f8ef8355de4..11fb04880e5 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.130 2011/07/06 16:36:52 krw Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.131 2011/07/26 12:32:14 krw Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -299,7 +299,6 @@ checkdisklabel(void *rlp, struct disklabel *lp, dlp->d_spare[i] = swap32(dlp->d_spare[i]); dlp->d_magic2 = swap32(dlp->d_magic2); - dlp->d_checksum = swap16(dlp->d_checksum); dlp->d_npartitions = swap16(dlp->d_npartitions); dlp->d_bbsize = swap32(dlp->d_bbsize); |