Stop lame warnings about braces and empty body of 'if' statement.

Change-Id: I9f0e3d047a91a8f49d5c64f961f8fff054f37099
This commit is contained in:
Michael Sevakis 2012-05-02 17:30:32 -04:00
parent da6cebb6b0
commit 0d568bb6ce
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}