Fix Sparse warnings about using plain integer as NULL pointer
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
diff --git a/target-sh4/op_helper.c b/target-sh4/op_helper.c
index 6dc8503..529df0c 100644
--- a/target-sh4/op_helper.c
+++ b/target-sh4/op_helper.c
@@ -145,7 +145,7 @@
memory_content *next = current->next;
free (current);
env->movcal_backup = current = next;
- if (current == 0)
+ if (current == NULL)
env->movcal_backup_tail = &(env->movcal_backup);
}
}
@@ -161,7 +161,7 @@
memory_content *next = (*current)->next;
stl(a, (*current)->value);
- if (next == 0)
+ if (next == NULL)
{
env->movcal_backup_tail = current;
}