Stop lame warnings about braces and empty body of 'if' statement.
Change-Id: I9f0e3d047a91a8f49d5c64f961f8fff054f37099
This commit is contained in:
parent
da6cebb6b0
commit
0d568bb6ce
1 changed files with 8 additions and 0 deletions
|
@ -212,9 +212,13 @@ move_block(struct buflib_context* ctx, union buflib_data* block, int shift)
|
||||||
* in it. and protect "tmp->alloc = new_start" for buflib_get_data() */
|
* in it. and protect "tmp->alloc = new_start" for buflib_get_data() */
|
||||||
/* call the callback before moving */
|
/* call the callback before moving */
|
||||||
if (ops && ops->sync_callback)
|
if (ops && ops->sync_callback)
|
||||||
|
{
|
||||||
ops->sync_callback(handle, true);
|
ops->sync_callback(handle, true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
disable_irq();
|
disable_irq();
|
||||||
|
}
|
||||||
|
|
||||||
bool retval = false;
|
bool retval = false;
|
||||||
if (!ops || ops->move_callback(handle, tmp->alloc, new_start)
|
if (!ops || ops->move_callback(handle, tmp->alloc, new_start)
|
||||||
|
@ -226,9 +230,13 @@ move_block(struct buflib_context* ctx, union buflib_data* block, int shift)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ops && ops->sync_callback)
|
if (ops && ops->sync_callback)
|
||||||
|
{
|
||||||
ops->sync_callback(handle, false);
|
ops->sync_callback(handle, false);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
enable_irq();
|
enable_irq();
|
||||||
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue