small warning fix
This commit is contained in:
parent
4487177c79
commit
f437ea3fe2
2
device.c
2
device.c
|
@ -238,7 +238,7 @@ gboolean sr_device_has_hwcap(struct sr_device *device, int hwcap)
|
||||||
int *capabilities, i;
|
int *capabilities, i;
|
||||||
|
|
||||||
if (!device || !device->plugin)
|
if (!device || !device->plugin)
|
||||||
return;
|
return FALSE;
|
||||||
|
|
||||||
if ((capabilities = device->plugin->get_capabilities()))
|
if ((capabilities = device->plugin->get_capabilities()))
|
||||||
for (i = 0; capabilities[i]; i++)
|
for (i = 0; capabilities[i]; i++)
|
||||||
|
|
Loading…
Reference in New Issue