mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
don't NULL-check output when it can't be
`output` here is the `pos` argument of `wl_list_for_each`, which means it is always assigned a return value of `wl_container_of`; this in turn means that it is never NULL. checking against NULL here just confuses static analysis and readers
This commit is contained in:
parent
272221dae2
commit
39bea30cd5
1 changed files with 1 additions and 3 deletions
|
|
@ -392,9 +392,7 @@ do_output_layout_change(struct server *server)
|
|||
struct output *output;
|
||||
|
||||
wl_list_for_each(output, &server->outputs, link) {
|
||||
if (output) {
|
||||
layers_arrange(output);
|
||||
}
|
||||
layers_arrange(output);
|
||||
}
|
||||
output_update_for_layout_change(server);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue