Re: [PATCH] commands: uimage: Drop needless variable in uimage_flush()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 26, 2019 at 12:06:36PM -0800, Andrey Smirnov wrote:
> Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx>
> ---
>  commands/uimage.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/commands/uimage.c b/commands/uimage.c
> index 7c2dca41e..982da7101 100644
> --- a/commands/uimage.c
> +++ b/commands/uimage.c
> @@ -13,11 +13,7 @@ static int uimage_fd;
>  
>  static int uimage_flush(void *buf, unsigned int len)
>  {
> -	int ret;
> -
> -	ret = write_full(uimage_fd, buf, len);
> -
> -	return ret;
> +	return write_full(uimage_fd, buf, len);
>  }
>  
>  static int do_uimage(int argc, char *argv[])
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux