Skip to content

Commit

Permalink
fb: avoid a small package after big package
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Li <Frank.Li@nxp.com>
  • Loading branch information
nxpfrankli committed Jul 11, 2018
1 parent 93b14d0 commit d8f51fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libuuu/fastboot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ int FBFlashCmd::flash_raw2sparse(FastBoot *fb, shared_ptr<FileBuffer> pdata, int

for (size_t i = 0; i < pdata->size(); i += block_size)
{
if (sf.push_one_block(pdata->data() + i) || ((i % max) == 0))
int ret = sf.push_one_block(pdata->data() + i);
if (ret)
{
if (flash(fb, sf.m_data.data(), sf.m_data.size()))
return -1;
Expand Down

0 comments on commit d8f51fc

Please sign in to comment.