Skip to content

Commit 55f1c75

Browse files
Richard Palethorpepevik
authored andcommitted
API/cgroups: Fix whitespace
It appears LSP mode with clangd was sneekily inserting spaces. Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Richard Palethorpe <[email protected]>
1 parent 43884a0 commit 55f1c75

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/tst_cgroup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
* case we end up with a set of hierarchies like the follwoing. Where
2626
* existing system-manager-created CGroups have been omitted.
2727
*
28-
* (V2 Root) (V1 Root 1) ... (V1 Root N)
29-
* | | |
28+
* (V2 Root) (V1 Root 1) ... (V1 Root N)
29+
* | | |
3030
* (ltp) (ltp) ... (ltp)
3131
* / \ / \ / \
3232
* (drain) (test-n) (drain) (test-n) ... (drain) (test-n)

lib/tst_cgroup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ struct cgroup_ctrl {
122122
const enum cgroup_ctrl_indx ctrl_indx;
123123

124124
/* Runtime; hierarchy the controller is attached to */
125-
struct cgroup_root *ctrl_root;
125+
struct cgroup_root *ctrl_root;
126126
/* Runtime; whether we required the controller */
127127
int we_require_it:1;
128128
};
@@ -442,7 +442,7 @@ void tst_cgroup_scan(void)
442442
}
443443

444444
do {
445-
if (strncmp(mnt->mnt_type, "cgroup", 6))
445+
if (strncmp(mnt->mnt_type, "cgroup", 6))
446446
continue;
447447

448448
cgroup_root_scan(mnt->mnt_type, mnt->mnt_dir, mnt->mnt_opts);
@@ -530,7 +530,7 @@ static void cgroup_mount_v1(struct cgroup_ctrl *const ctrl)
530530
if (!ctrl->ctrl_root)
531531
return;
532532

533-
ctrl->ctrl_root->we_mounted_it = 1;
533+
ctrl->ctrl_root->we_mounted_it = 1;
534534
ctrl->ctrl_root->mnt_dir.we_created_it = made_dir;
535535

536536
if (ctrl->ctrl_indx == CTRL_MEMORY) {

0 commit comments

Comments
 (0)