commands: ubiupdatevol: store return value of read() in a signed int
With an unsigned int test for errors from read() can never become true. Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
f7a2e37fcd
commit
90494c6f7e
|
@ -14,10 +14,9 @@
|
|||
|
||||
static int do_ubiupdatevol(int argc, char *argv[])
|
||||
{
|
||||
int fd_img, fd_vol, ret = 0;
|
||||
int count, fd_img, fd_vol, ret = 0;
|
||||
uint64_t size = 0;
|
||||
struct stat st;
|
||||
unsigned int count;
|
||||
void *buf;
|
||||
|
||||
if (argc - optind < 2)
|
||||
|
|
Loading…
Reference in New Issue