Remove useless NULL checks for qemu_malloc return value
authorBlue Swirl <blauwirbel@gmail.com>
Thu, 19 Aug 2010 20:24:39 +0000 (20:24 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Thu, 19 Aug 2010 20:24:39 +0000 (20:24 +0000)
commitdd69da6fd41836443243911cfc26d92c1e9eb816
tree8c1d7a3d5983871f60292eba42f523fd6e95b078
parente398a1af5e6fefeb941c03bf6ec5f052f2a32ca4
Remove useless NULL checks for qemu_malloc return value

Found with this Coccinelle semantic patch:
@@
expression E;
identifier ptr;
identifier fn ~= "qemu_mallocz*";
@@

-ptr = fn(E);
-if (ptr == NULL) { ... }
-
+ptr = fn(E);

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
vl.c