Drop unnecessary NULL check in frame_callback_handle_done()
After wl_callback_destroy() is called, frame_callback_handle_done() is guaranteed to never be called by libwayland: the done event will be silently dropped instead.
This commit is contained in:
parent
928cb37f9a
commit
61ad53b046
1 changed files with 0 additions and 3 deletions
3
main.c
3
main.c
|
@ -32,9 +32,6 @@ static void cancel(struct chayang *state) {
|
|||
|
||||
static void frame_callback_handle_done(void *data, struct wl_callback *callback, uint32_t time) {
|
||||
struct chayang_output *output = data;
|
||||
if (callback == NULL) {
|
||||
return;
|
||||
}
|
||||
assert(callback == output->frame_callback);
|
||||
wl_callback_destroy(callback);
|
||||
output->frame_callback = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue