Skip to content

Commit

Permalink
zfs_allow_log_destroy parameter NULl update style
Browse files Browse the repository at this point in the history
zfs_allow_log_destroy parameter NULl update style
  • Loading branch information
heary-cao authored Jul 27, 2016
1 parent 9fa4e35 commit e261938
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions module/zfs/zfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3347,9 +3347,7 @@ zfs_ioc_log_history(const char *unused, nvlist_t *innvl, nvlist_t *outnvl)
poolname = tsd_get(zfs_allow_log_key);
if (poolname == NULL)
return (SET_ERROR(EINVAL));

(void) tsd_set(zfs_allow_log_key, NULL);

error = spa_open(poolname, &spa, FTAG);
strfree(poolname);
if (error != 0)
Expand Down Expand Up @@ -6301,7 +6299,6 @@ static void
zfs_allow_log_destroy(void *arg)
{
char *poolname = arg;

if (poolname != NULL)
strfree(poolname);
}
Expand Down

0 comments on commit e261938

Please sign in to comment.