From 50f69a92e345792783dc2d7be5739f3d51e12608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jerzy=20Ko=C5=82osowski?= Date: Thu, 19 Dec 2024 11:37:58 +0100 Subject: [PATCH] Fix comments in pam_zfs_key.c to improve code clarity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- contrib/pam_zfs_key/pam_zfs_key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pam_zfs_key/pam_zfs_key.c b/contrib/pam_zfs_key/pam_zfs_key.c index d3fa6e994270..c617a6e6b370 100644 --- a/contrib/pam_zfs_key/pam_zfs_key.c +++ b/contrib/pam_zfs_key/pam_zfs_key.c @@ -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 */ @@ -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 */