From 0d568bb6ce2a3100e82775998289a12f27c1d1f6 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 2 May 2012 17:30:32 -0400 Subject: Stop lame warnings about braces and empty body of 'if' statement. Change-Id: I9f0e3d047a91a8f49d5c64f961f8fff054f37099 --- firmware/buflib.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'firmware/buflib.c') 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; } -- cgit v1.2.3