diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-14 21:34:04 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-14 21:34:04 +0100 |
| commit | c7a56e3a3257af927695f564a8773bea31b93adf (patch) | |
| tree | 7e8b2b533d996f2e12090973de81dc93e15c7498 /vis.c | |
| parent | fc57da7dabc53abb66fe6962235356f81393aef7 (diff) | |
| download | vis-c7a56e3a3257af927695f564a8773bea31b93adf.tar.gz vis-c7a56e3a3257af927695f564a8773bea31b93adf.tar.xz | |
vis: remove useless NULL check
The very first thing we do if that check is false, is return from the function.
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ bool vis_event_emit(Vis *vis, enum VisEvents id, ...) { if (!vis->initialized) { vis->initialized = true; vis->ui->init(vis->ui, vis); - if (vis->event && vis->event->init) + if (vis->event->init) vis->event->init(vis); } |
