mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
cmd: sdp: Reorder variable declaration
Move the variable declaration around to improve code readability. No functional change. Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
0669a929b8
commit
37fb7cb7f8
1 changed files with 2 additions and 2 deletions
|
@ -14,13 +14,13 @@
|
|||
|
||||
static int do_sdp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int controller_index;
|
||||
int ret;
|
||||
|
||||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
char *usb_controller = argv[1];
|
||||
int controller_index = simple_strtoul(usb_controller, NULL, 0);
|
||||
controller_index = simple_strtoul(argv[1], NULL, 0);
|
||||
usb_gadget_initialize(controller_index);
|
||||
|
||||
g_dnl_clear_detach();
|
||||
|
|
Loading…
Reference in a new issue