void function return statements are not generally useful

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
Dimitri Papadopoulos
2023-05-25 16:55:50 +02:00
parent 52e16650ec
commit 5e881697e7
31 changed files with 5 additions and 129 deletions

View File

@@ -68,7 +68,6 @@ void writer(int fd)
assert(write(fd, buf+j, 1) == 1);
}
}
return;
}
void receiver(int fd)
@@ -87,8 +86,6 @@ void receiver(int fd)
fprintf(stderr, "received %d\n", ret);
assert(ret > 0);
}
return;
}
int main(int argc, char **argv)

View File

@@ -76,7 +76,6 @@ static void check(const char *ip)
exit(1);
}
return;
}
static void check_port(const char *ip, unsigned port)
@@ -105,7 +104,6 @@ static void check_port(const char *ip, unsigned port)
exit(1);
}
return;
}
int main()

View File

@@ -35,7 +35,6 @@
void fw_port_st__init(FwPortSt *message)
{
return;
}
void check_vals(FwPortSt **fw_ports, size_t n_fw_ports) {