Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ti-connected-launchpad
lm4tools_public
Commits
6b658153
Commit
6b658153
authored
Oct 29, 2012
by
Fabio Utzig
Browse files
Coding style fixes
parent
ca6cb63d
Changes
1
Show whitespace changes
Inline
Side-by-side
lm4flash/lm4flash.c
View file @
6b658153
...
...
@@ -491,8 +491,7 @@ enum flasher_error {
};
static
enum
flasher_error
static
enum
flasher_error
flasher_find_matching_device
(
libusb_context
*
ctx
,
libusb_device
**
matching_device_out
,
...
...
@@ -513,7 +512,7 @@ flasher_find_matching_device(
int
device_count
;
int
device_index
;
/* Enum
b
erate all USB devices */
/* Enumerate all USB devices */
retval
=
libusb_get_device_list
(
ctx
,
&
device_list
);
if
(
retval
<
0
)
{
libusb_error
=
retval
;
...
...
@@ -597,9 +596,7 @@ out:
}
static
void
flasher_usage
()
static
void
flasher_usage
()
{
printf
(
"usage: lm4flash [-v] [-s serial] <binary-file>
\n
"
);
printf
(
"
\t
-v - Enables verification after write
\n
"
);
...
...
@@ -607,13 +604,7 @@ flasher_usage()
}
static
int
flasher_flash
(
int
do_verify
,
const
char
*
serial
,
const
char
*
rom_name
)
static
int
flasher_flash
(
const
char
*
serial
,
const
char
*
rom_name
)
{
libusb_context
*
ctx
=
NULL
;
libusb_device
*
device
=
NULL
;
...
...
@@ -705,10 +696,12 @@ int main(int argc, char *argv[])
return
EXIT_FAILURE
;
}
}
if
(
optind
>=
argc
)
{
flasher_usage
();
return
EXIT_FAILURE
;
}
else
rom_name
=
argv
[
optind
];
return
flasher_flash
(
do_verify
,
serial
,
rom_name
);
return
flasher_flash
(
serial
,
rom_name
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment