On Thu, 20 Aug 2015 14:24:34 +0200 Bernhard Nortmann <bernhard.nortm...@web.de> wrote:
> 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: Bernhard Nortmann <bernhard.nortm...@web.de> > --- > fel.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fel.c b/fel.c > index a5cb99d..e36e92d 100644 > --- a/fel.c > +++ b/fel.c > @@ -64,7 +64,6 @@ static int timeout = 60000; > 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_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, ...) > { > @@ -869,6 +868,7 @@ static double gettime(void) > > int main(int argc, char **argv) > { > + int uboot_autostart = 0; /* flag for "uboot" command = U-Boot autostart > */ > int rc; > libusb_device_handle *handle = NULL; > int iface_detached = -1; Acked-by: Siarhei Siamashka <siarhei.siamas...@gmail.com> -- Best regards, Siarhei Siamashka -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.