summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrea Claudi <aclaudi@redhat.com>2023-05-31 12:35:56 +0200
committerDavid Ahern <dsahern@kernel.org>2023-06-05 12:49:34 -0600
commite0c7a04f1dfd7ca05e0725663489c6406d169b9c (patch)
treeea76872469b12316d45f7b0f17a16bdb92f026af /lib
parentefe6f2e143f5ffaf2b58221379993e08887323a8 (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.c2
-rw-r--r--lib/ll_types.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/fs.c b/lib/fs.c
index 7f4b159c..622f28b3 100644
--- a/lib/fs.c
+++ b/lib/fs.c
@@ -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;
}