Skip to content

Commit

Permalink
Fix comments in pam_zfs_key.c to improve code clarity
Browse files Browse the repository at this point in the history
Removed unnecessary comments from return statements that were redundant and made the code cleaner. This does not impact functionality but enhances readability and maintainability.

Signed-off-by: Jerzy Kołosowski <[email protected]>
  • Loading branch information
jkolo committed Dec 19, 2024
1 parent cfc137e commit 8a25cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/pam_zfs_key/pam_zfs_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ mount_dataset(zfs_handle_t *zhp, void *data)
pam_syslog(pamh, LOG_INFO,
"canmount is not on for: %s, skipping",
zfs_get_name(zhp));
return (0); // Skip dataset
return (0);
}

/* Get mountpoint prop for check */
Expand All @@ -510,7 +510,7 @@ mount_dataset(zfs_handle_t *zhp, void *data)
pam_syslog(pamh, LOG_INFO,
"mountpoint is none or legacy for: %s, skipping",
zfs_get_name(zhp));
return (0); // Skip dataset
return (0);
}

/* Don't mount the dataset if already mounted */
Expand Down

0 comments on commit 8a25cee

Please sign in to comment.