quirk: remove unused variable

Also fixes a coverity complaint about incrementing an uninitialized variable.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-06-18 13:25:02 +10:00
parent 334b625300
commit 653beca662

View file

@ -1079,8 +1079,6 @@ quirks_new(void)
struct quirks *
quirks_unref(struct quirks *q)
{
struct property *p;
if (!q)
return NULL;
@ -1090,7 +1088,6 @@ quirks_unref(struct quirks *q)
for (size_t i = 0; i < q->nproperties; i++) {
property_unref(q->properties[i]);
p++;
}
list_remove(&q->link);