Commit 1dea1e8e authored by Bernhard Nortmann's avatar Bernhard Nortmann Committed by Siarhei Siamashka
Browse files

sunxi-tools: make "uboot_autostart" local instead of global



Narrow down the scope of the "uboot_autostart" variable.
The flag can be made local to main(), there's no need to keep it global.
Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
Acked-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent 303cc2cd
...@@ -64,7 +64,6 @@ static int timeout = 60000; ...@@ -64,7 +64,6 @@ static int timeout = 60000;
static int verbose = 0; /* Makes the 'fel' tool more talkative if non-zero */ static int verbose = 0; /* Makes the 'fel' tool more talkative if non-zero */
static uint32_t uboot_entry = 0; /* entry point (address) of U-Boot */ static uint32_t uboot_entry = 0; /* entry point (address) of U-Boot */
static uint32_t uboot_size = 0; /* size of U-Boot binary */ static uint32_t uboot_size = 0; /* size of U-Boot binary */
static int uboot_autostart = 0; /* "uboot" command flag = autostart U-Boot */
static void pr_info(const char *fmt, ...) static void pr_info(const char *fmt, ...)
{ {
...@@ -890,6 +889,7 @@ static double gettime(void) ...@@ -890,6 +889,7 @@ static double gettime(void)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int uboot_autostart = 0; /* flag for "uboot" command = U-Boot autostart */
int rc; int rc;
libusb_device_handle *handle = NULL; libusb_device_handle *handle = NULL;
int iface_detached = -1; int iface_detached = -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment