From d8212243c99f3be828033a5cc76b258990aa565b Mon Sep 17 00:00:00 2001 From: Carl Smedstad Date: Fri, 30 Dec 2022 08:26:52 +0100 Subject: [PATCH] Remove redundant return statements --- sway/config/bar.c | 1 - sway/config/seat.c | 1 - sway/ipc-server.c | 1 - 3 files changed, 3 deletions(-) diff --git a/sway/config/bar.c b/sway/config/bar.c index d1b342e6..a8389244 100644 --- a/sway/config/bar.c +++ b/sway/config/bar.c @@ -256,7 +256,6 @@ static void invoke_swaybar(struct bar_config *bar) { } sway_log(SWAY_DEBUG, "Spawned swaybar %s", bar->id); - return; } void load_swaybar(struct bar_config *bar) { diff --git a/sway/config/seat.c b/sway/config/seat.c index 84260aa3..6d5d91ae 100644 --- a/sway/config/seat.c +++ b/sway/config/seat.c @@ -99,7 +99,6 @@ static void seat_attachment_config_free( struct seat_attachment_config *attachment) { free(attachment->identifier); free(attachment); - return; } static struct seat_attachment_config *seat_attachment_config_copy( diff --git a/sway/ipc-server.c b/sway/ipc-server.c index fddd8fab..51244436 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -909,7 +909,6 @@ void ipc_client_handle_command(struct ipc_client *client, uint32_t payload_lengt exit_cleanup: free(buf); - return; } bool ipc_send_reply(struct ipc_client *client, enum ipc_command_type payload_type,