diff options
author | Carl Smedstad <carl.smedstad@protonmail.com> | 2022-12-30 08:26:52 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-01-03 21:50:56 +0100 |
commit | d8212243c99f3be828033a5cc76b258990aa565b (patch) | |
tree | b0067a3790bec7019ddf4bb01b7f1fad408f9eba | |
parent | Make cmd_handler.command const (diff) | |
download | sway-d8212243c99f3be828033a5cc76b258990aa565b.tar.gz sway-d8212243c99f3be828033a5cc76b258990aa565b.tar.zst sway-d8212243c99f3be828033a5cc76b258990aa565b.zip |
Remove redundant return statements
-rw-r--r-- | sway/config/bar.c | 1 | ||||
-rw-r--r-- | sway/config/seat.c | 1 | ||||
-rw-r--r-- | sway/ipc-server.c | 1 |
3 files changed, 0 insertions, 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) { | |||
256 | } | 256 | } |
257 | 257 | ||
258 | sway_log(SWAY_DEBUG, "Spawned swaybar %s", bar->id); | 258 | sway_log(SWAY_DEBUG, "Spawned swaybar %s", bar->id); |
259 | return; | ||
260 | } | 259 | } |
261 | 260 | ||
262 | void load_swaybar(struct bar_config *bar) { | 261 | 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( | |||
99 | struct seat_attachment_config *attachment) { | 99 | struct seat_attachment_config *attachment) { |
100 | free(attachment->identifier); | 100 | free(attachment->identifier); |
101 | free(attachment); | 101 | free(attachment); |
102 | return; | ||
103 | } | 102 | } |
104 | 103 | ||
105 | static struct seat_attachment_config *seat_attachment_config_copy( | 104 | 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 | |||
909 | 909 | ||
910 | exit_cleanup: | 910 | exit_cleanup: |
911 | free(buf); | 911 | free(buf); |
912 | return; | ||
913 | } | 912 | } |
914 | 913 | ||
915 | bool ipc_send_reply(struct ipc_client *client, enum ipc_command_type payload_type, | 914 | bool ipc_send_reply(struct ipc_client *client, enum ipc_command_type payload_type, |