Skip to content
Snippets Groups Projects
Verified Commit 502d6d9f authored by rahix's avatar rahix
Browse files

style(ls_cmsis_dap): Apply code-style


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent c913b7f4
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,8 @@ int main(int argc, char *argv[]) ...@@ -14,7 +14,8 @@ int main(int argc, char *argv[])
struct hid_device_info *hid_devs = hid_enumerate(0x0d28, 0x0204); struct hid_device_info *hid_devs = hid_enumerate(0x0d28, 0x0204);
if (!hid_devs) { if (!hid_devs) {
fprintf(stderr, "hid_enumerate: NULL\n"); fprintf(stderr, "hid_enumerate: NULL\n");
rc = 1; goto done; rc = 1;
goto done;
} }
for (struct hid_device_info *dev = hid_devs; dev; dev = dev->next) { for (struct hid_device_info *dev = hid_devs; dev; dev = dev->next) {
...@@ -22,7 +23,9 @@ int main(int argc, char *argv[]) ...@@ -22,7 +23,9 @@ int main(int argc, char *argv[])
} }
done: done:
if( hid_devs ){ hid_free_enumeration(hid_devs); } if (hid_devs) {
hid_free_enumeration(hid_devs);
}
hid_exit(); hid_exit();
return -1; return -1;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment