]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
biosdisk.c remove redundant variable
authorallanjude <allanjude@FreeBSD.org>
Sat, 16 Jun 2018 04:50:40 +0000 (04:50 +0000)
committerallanjude <allanjude@FreeBSD.org>
Sat, 16 Jun 2018 04:50:40 +0000 (04:50 +0000)
commit8c86d43df7fd85e616276eeafc5af94111abb215
treeaf88dd0d442aa868c7a8f6625f254bde2c80e77e
parenta3b6ccb4fcd925f3784d443dc9cd506b93cb2d8a
biosdisk.c remove redundant variable

`rdev` and `disk` serve the same purpose, read the partition table without
the `d_offset` or `d_slice` set, so the read is relative to the start of
the disk. Reuse the already initialized `disk` instead of making another
copy later.

Sponsored by: Klara Systems
stand/i386/libi386/biosdisk.c