Skip to content

Commit

Permalink
Merge commit 'refs/top-bases/top' into top
Browse files Browse the repository at this point in the history
  • Loading branch information
behlendorf committed Jul 21, 2010
2 parents 889c391 + 14729bc commit c5a97e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions module/zfs/zfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,9 +1135,8 @@ zfs_ioc_pool_destroy(struct file *filp, zfs_cmd_t *zc)
{
int error;
zfs_log_history(zc);
error = zvol_remove_minors(zc->zc_name);
if (error == 0)
error = spa_destroy(zc->zc_name);
(void) zvol_remove_minors(zc->zc_name);
error = spa_destroy(zc->zc_name);
return (error);
}

Expand Down

0 comments on commit c5a97e4

Please sign in to comment.