qemu/darwin-user
Stefan Weil 70afb8ff90 darwin-user: Remove unneeded null pointer check
cppcheck reports this error:

commpage.c:223: error: Possible null pointer dereference:
value - otherwise it is redundant to check if value is null at line 214

The null pointer check in line 214 is indeed not needed.
If value were null, the code would crash in line 223.
See do_compare_and_swap64 were for a reference.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-27 16:28:09 +02:00
..
commpage.c darwin-user: Remove unneeded null pointer check 2011-04-27 16:28:09 +02:00
ioctls_types.h Add missing newline at the end of file 2008-12-14 08:50:18 +00:00
ioctls.h Darwin userspace emulation, by Pierre d'Herbemont. 2007-01-18 20:06:33 +00:00
machload.c darwin-user: Use GCC_FMT_ATTR (format checking) 2010-12-04 20:51:19 +00:00
main.c darwin-user: Add missing static attribute 2010-05-07 16:28:12 +00:00
mmap.c bsd/darwin-user: mmap_frag() users only check for -1 error 2010-01-31 13:41:07 +00:00
qemu.h darwin-user: Use GCC_FMT_ATTR (format checking) 2010-12-04 20:51:19 +00:00
signal.c Update to a hopefully more future proof FSF address 2009-07-16 20:47:01 +00:00
syscall.c Fix %lld or %llx printf format use 2010-05-22 08:02:12 +00:00
syscalls.h Handling more darwin-user syscalls, by Ilya Shar. 2007-03-19 13:43:04 +00:00