summaryrefslogtreecommitdiff
path: root/sway/commands/fullscreen.c
diff options
context:
space:
mode:
authorAntonin Décimo <[email protected]>2019-08-10 17:03:20 +0200
committerDrew DeVault <[email protected]>2019-08-12 09:42:11 +0900
commit813e1209795f7016fd1223c5ce96b2185eed5a9a (patch)
tree892eeea5d2ae14f4a18e6dc74fdc0703bb124e4b /sway/commands/fullscreen.c
parent3af52d86f73986e5459444509b53302d400c84b6 (diff)
Remove redundant checks
Diffstat (limited to 'sway/commands/fullscreen.c')
-rw-r--r--sway/commands/fullscreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/fullscreen.c b/sway/commands/fullscreen.c
index 0d7ba112..3392a7f7 100644
--- a/sway/commands/fullscreen.c
+++ b/sway/commands/fullscreen.c
@@ -35,7 +35,7 @@ struct cmd_results *cmd_fullscreen(int argc, char **argv) {
bool is_fullscreen = false;
for (struct sway_container *curr = container; curr; curr = curr->parent) {
- if (curr && curr->fullscreen_mode != FULLSCREEN_NONE) {
+ if (curr->fullscreen_mode != FULLSCREEN_NONE) {
container = curr;
is_fullscreen = true;
break;