Re: [Qemu-devel] [PATCH] hw/tc58128.c: Remove unnecessary check for g_malloc failure

2011-11-11 Thread Anthony Liguori
On 11/09/2011 01:34 PM, Peter Maydell wrote: Remove a check for g_malloc failing: this never happens. Also use g_malloc rather than g_malloc0 as we immediately memset the entire region and so zero-initialising it is pointless. Spotted by Coverity (see bug 887883). Signed-off-by: Peter Maydell

[Qemu-devel] [PATCH] hw/tc58128.c: Remove unnecessary check for g_malloc failure

2011-11-09 Thread Peter Maydell
Remove a check for g_malloc failing: this never happens. Also use g_malloc rather than g_malloc0 as we immediately memset the entire region and so zero-initialising it is pointless. Spotted by Coverity (see bug 887883). Signed-off-by: Peter Maydell --- hw/tc58128.c |6 +- 1 files changed