diff options
author | Andrea Claudi <aclaudi@redhat.com> | 2023-05-31 12:35:56 +0200 |
---|---|---|
committer | David Ahern <dsahern@kernel.org> | 2023-06-05 12:49:34 -0600 |
commit | e0c7a04f1dfd7ca05e0725663489c6406d169b9c (patch) | |
tree | ea76872469b12316d45f7b0f17a16bdb92f026af /lib | |
parent | efe6f2e143f5ffaf2b58221379993e08887323a8 (diff) |
treewide: fix indentation
Replace multiple whitespaces with tab where appropriate.
While at it, fix tc flower help message and remove some double
whitespaces.
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fs.c | 2 | ||||
-rw-r--r-- | lib/ll_types.c | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -41,7 +41,7 @@ static int name_to_handle_at(int dirfd, const char *pathname, struct file_handle *handle, int *mount_id, int flags) { return syscall(__NR_name_to_handle_at, dirfd, pathname, handle, - mount_id, flags); + mount_id, flags); } static int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags) diff --git a/lib/ll_types.c b/lib/ll_types.c index 20183ad6..69141ade 100644 --- a/lib/ll_types.c +++ b/lib/ll_types.c @@ -108,10 +108,10 @@ __PF(VOID, void) #undef __PF unsigned int i; - for (i = 0; !numeric && i < ARRAY_SIZE(arphrd_names); i++) { - if (arphrd_names[i].type == type) + for (i = 0; !numeric && i < ARRAY_SIZE(arphrd_names); i++) { + if (arphrd_names[i].type == type) return arphrd_names[i].name; } - snprintf(buf, len, "[%d]", type); - return buf; + snprintf(buf, len, "[%d]", type); + return buf; } |