mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
Remove redundant size calculation.
MFC after: 3 days
This commit is contained in:
parent
7042aba738
commit
13d46594d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226549
|
@ -1215,15 +1215,10 @@ static void
|
|||
vdev_raidz_map_free(raidz_map_t *rm)
|
||||
{
|
||||
int c;
|
||||
size_t size;
|
||||
|
||||
for (c = rm->rm_firstdatacol - 1; c >= 0; c--)
|
||||
zfs_free(rm->rm_col[c].rc_data, rm->rm_col[c].rc_size);
|
||||
|
||||
size = 0;
|
||||
for (c = rm->rm_firstdatacol; c < rm->rm_cols; c++)
|
||||
size += rm->rm_col[c].rc_size;
|
||||
|
||||
zfs_free(rm, offsetof(raidz_map_t, rm_col[rm->rm_scols]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue