]> git.proxmox.com Git - mirror_qemu.git/commit
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)
commit8e00128d325ad108289347d091a6b054dbfa8ec2
tree8c1d7a3d5983871f60292eba42f523fd6e95b078
parent760e77eab53f5d92eb0c587e04fd942a905b46af
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