summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index a16a6cc15e..baef6691d4 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -99,8 +99,7 @@ static void ata_lock_init(struct ata_lock *l)
99 99
100static void ata_lock_lock(struct ata_lock *l) 100static void ata_lock_lock(struct ata_lock *l)
101{ 101{
102 struct thread_entry * const current = 102 struct thread_entry * const current = thread_self_entry();
103 thread_id_entry(THREAD_ID_CURRENT);
104 103
105 if (current == l->thread) 104 if (current == l->thread)
106 { 105 {