libfile: Simplify read_full()
We can figure out the amount of written data by substracting 'insize'
from 'size' so there is no need to keep a separate counter for that.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 0ac711f commit 6ce2ee8ce47afb21aaaa8cfee4fca744ebf520a9
@Andrey Smirnov Andrey Smirnov authored on 28 May 2019
Sascha Hauer committed on 28 May 2019
Showing 1 changed file
View
lib/libfile.c