Remove redundant size calculation.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2011-10-19 23:31:50 +00:00
parent 7042aba738
commit 13d46594d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226549

View file

@ -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]));
}