mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-26 04:00:05 +01:00
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:
parent
334b625300
commit
653beca662
1 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue