diff options
author | 2009-09-21 18:11:34 +0000 | |
---|---|---|
committer | 2009-09-21 18:11:34 +0000 | |
commit | b9d38e9510b38a8c101fa50cbd6f75d9eff61261 (patch) | |
tree | c267953d3408328a7d262b95a9fb95641e285525 /target-sh4 | |
parent | Fix user targets broken by 96e132e24ee5a693069e83b6a981693588b088c1 (diff) | |
download | qemu-kvm-b9d38e9510b38a8c101fa50cbd6f75d9eff61261.tar.gz qemu-kvm-b9d38e9510b38a8c101fa50cbd6f75d9eff61261.tar.bz2 qemu-kvm-b9d38e9510b38a8c101fa50cbd6f75d9eff61261.zip |
Fix Sparse warnings about using plain integer as NULL pointer
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sh4')
-rw-r--r-- | target-sh4/op_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/op_helper.c b/target-sh4/op_helper.c index 6dc8503a0..529df0ca9 100644 --- a/target-sh4/op_helper.c +++ b/target-sh4/op_helper.c @@ -145,7 +145,7 @@ void helper_discard_movcal_backup(void) 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 @@ void helper_ocbi(uint32_t address) memory_content *next = (*current)->next; stl(a, (*current)->value); - if (next == 0) + if (next == NULL) { env->movcal_backup_tail = current; } |