summaryrefslogtreecommitdiff
path: root/firmware/buflib.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-05-02 17:30:32 -0400
committerMichael Sevakis <jethead71@rockbox.org>2012-05-02 17:30:32 -0400
commit0d568bb6ce2a3100e82775998289a12f27c1d1f6 (patch)
treee96e332482c18f9924e387a794a6c2972d0bb094 /firmware/buflib.c
parentda6cebb6b0b17b4a75a2bd4f51b7cf70b5dafe40 (diff)
Stop lame warnings about braces and empty body of 'if' statement.
Change-Id: I9f0e3d047a91a8f49d5c64f961f8fff054f37099
Diffstat (limited to 'firmware/buflib.c')
-rw-r--r--firmware/buflib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c
index f73c8ce4fb..098872f317 100644
--- a/firmware/buflib.c
+++ b/firmware/buflib.c
@@ -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;
}