diff options
author | bz <bz@FreeBSD.org> | 2011-08-20 19:21:46 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2011-08-20 19:21:46 +0000 |
commit | 422bc41b314b204b624a6825c4a751104981bcaa (patch) | |
tree | 124c9d626082caddc163e685307d7573478ee5a9 /sys/pc98 | |
parent | ff90e69a5ad57263f93dafbd3e5a5c47dc656a91 (diff) | |
download | FreeBSD-src-422bc41b314b204b624a6825c4a751104981bcaa.zip FreeBSD-src-422bc41b314b204b624a6825c4a751104981bcaa.tar.gz |
In HEAD when doing no further checkes there is no reason use the
temporary variable and check with if as TUNABLE_*_FETCH do not
alter values unless successfully found the tunable.
Reported by: jhb, bde
MFC after: 3 days
X-MFC with: r224516
Approved by: re (kib)
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/machdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 22131a6..b42249c 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -1855,7 +1855,7 @@ static void getmemsize(int first) { int off, physmap_idx, pa_indx, da_indx; - u_long physmem_tunable, memtest, tmpul; + u_long physmem_tunable, memtest; vm_paddr_t physmap[PHYSMAP_SIZE]; pt_entry_t *pte; quad_t dcons_addr, dcons_size; @@ -1920,8 +1920,7 @@ getmemsize(int first) * one could eventually do more with the code than just disable it. */ memtest = 1; - if (TUNABLE_ULONG_FETCH("hw.memtest.tests", &tmpul)) - memtest = tmpul; + TUNABLE_ULONG_FETCH("hw.memtest.tests", &memtest); if (atop(physmap[physmap_idx + 1]) != Maxmem && (boothowto & RB_VERBOSE)) |