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() */
|
||||
/* call the callback before moving */
|
||||
if (ops && ops->sync_callback)
|
||||
{
|
||||
ops->sync_callback(handle, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
disable_irq();
|
||||
}
|
||||
|
||||
bool retval = false;
|
||||
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)
|
||||
{
|
||||
ops->sync_callback(handle, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
enable_irq();
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue