]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
src/daemon/cgrulesengd.c: fix coding style complaint
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 11 Aug 2023 06:55:04 +0000 (12:25 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 11 Aug 2023 17:37:54 +0000 (11:37 -0600)
Fix the checkpatch.pl warnings, making it coding style complaint.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/daemon/cgrulesengd.c

index 51988de50b6d95e8d210b09fc8fb0b7f803bf348..dc3969000d0a03d42dfedacdfdd25bafdb9535e5 100644 (file)
@@ -223,6 +223,7 @@ static int cgre_store_parent_info(pid_t pid)
        if (array_pi.index >= array_pi.num_allocation) {
                int alloc = array_pi.num_allocation + NUM_PER_REALLOCATIOM;
                void *new_array = realloc(array_pi.parent_info, sizeof(info) * alloc);
+
                if (!new_array) {
                        flog(LOG_WARNING, "Failed to allocate memory\n");
                        return 1;
@@ -314,6 +315,7 @@ static int cgre_store_unchanged_process(pid_t pid, int flags)
        if (array_unch.index >= array_unch.num_allocation) {
                int alloc = array_unch.num_allocation + NUM_PER_REALLOCATIOM;
                void *new_array = realloc(array_unch.proc, sizeof(unchanged_pid_t) * alloc);
+
                if (!new_array) {
                        flog(LOG_WARNING, "Failed to allocate memory\n");
                        return 1;