summaryrefslogtreecommitdiffstats
path: root/app/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/i2c.c')
-rw-r--r--app/i2c.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/i2c.c b/app/i2c.c
index edead09..8c5630e 100644
--- a/app/i2c.c
+++ b/app/i2c.c
@@ -5,11 +5,10 @@ static int mutex = 0;
int
i2c_lock (void)
{
- if (__sync_add_and_fetch (&mutex, 1) != 1)
- {
- __sync_sub_and_fetch (&mutex, 1);
- return -1;
- }
+ if (__sync_add_and_fetch (&mutex, 1) != 1) {
+ __sync_sub_and_fetch (&mutex, 1);
+ return -1;
+ }
return 0;
}