freemyipod r169 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r168‎ | r169 | r170 >
Date:22:18, 21 August 2010
Author:theseven
Status:new
Tags:
Comment:
Oops, fix some nonsense from the previous commit
Modified paths:
  • /embios/trunk/button.c (modified) (history)

Diff [purge]

Index: embios/trunk/button.c
@@ -51,8 +51,8 @@
5252 {
5353 button_hooks[i].owner = current_thread;
5454 button_hooks[i].handler = handler;
 55+ mutex_unlock(&button_mutex);
5556 return 0;
56 - mutex_unlock(&button_mutex);
5757 }
5858 mutex_unlock(&button_mutex);
5959 return -1;
@@ -91,7 +91,6 @@
9292 {
9393 button_hooks[i].owner = NULL;
9494 button_hooks[i].handler = NULL;
95 - mutex_unlock(&button_mutex);
9695 }
9796 mutex_unlock(&button_mutex);
9897 }