test: Fix test device type validity check

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Jonas Ådahl 2014-03-25 22:56:01 +01:00
parent 2b63c7c872
commit dbbc091123

View file

@ -418,7 +418,7 @@ litest_create(enum litest_device_type which,
dev++;
}
if (!dev)
if (!*dev)
ck_abort_msg("Invalid device type %d\n", which);
d = zalloc(sizeof(*d));