Skip to content

Commit

Permalink
checkstyle fix
Browse files Browse the repository at this point in the history
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
  • Loading branch information
Youzhong Yang committed Aug 16, 2022
1 parent f0242b5 commit 5ed48ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/os/linux/spl/sys/cred.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,28 @@ typedef struct cred cred_t;
static inline uid_t zfs_uid_into_mnt(struct user_namespace *mnt_ns, uid_t uid)
{
if (mnt_ns)
return __kuid_val(make_kuid(mnt_ns, uid));
return (__kuid_val(make_kuid(mnt_ns, uid)));
return (uid);
}

static inline gid_t zfs_gid_into_mnt(struct user_namespace *mnt_ns, gid_t gid)
{
if (mnt_ns)
return __kgid_val(make_kgid(mnt_ns, gid));
return (__kgid_val(make_kgid(mnt_ns, gid)));
return (gid);
}

static inline uid_t zfs_uid_from_mnt(struct user_namespace *mnt_ns, uid_t uid)
{
if (mnt_ns)
return from_kuid(mnt_ns, KUIDT_INIT(uid));
return (from_kuid(mnt_ns, KUIDT_INIT(uid)));
return (uid);
}

static inline gid_t zfs_gid_from_mnt(struct user_namespace *mnt_ns, gid_t gid)
{
if (mnt_ns)
return from_kgid(mnt_ns, KGIDT_INIT(gid));
return (from_kgid(mnt_ns, KGIDT_INIT(gid)));
return (gid);
}

Expand Down

0 comments on commit 5ed48ac

Please sign in to comment.