uterm: vt: silence gcc warning
We initialize the variable to "true" to silence gcc warnings that we might get an uninitialized variable (which we really cannot get here). Anyway, in the future, if the number of types may increase, the correct way to deal with unknown types is returning "true" so do this by default now. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
6356dae1da
commit
9e5013f51b
@ -93,7 +93,7 @@ static bool vt_event(struct kmscon_vt *ovt, enum kmscon_vt_action action,
|
||||
void *data)
|
||||
{
|
||||
struct uterm_vt *vt = data;
|
||||
int ret;
|
||||
int ret = true;
|
||||
|
||||
switch (action) {
|
||||
case KMSCON_VT_ENTER:
|
||||
|
Loading…
x
Reference in New Issue
Block a user