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

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() */ * 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;
} }