]> git.proxmox.com Git - mirror_qemu.git/commit
Remove useless NULL check for qemu_strdup return value
authorBlue Swirl <blauwirbel@gmail.com>
Thu, 19 Aug 2010 20:24:43 +0000 (20:24 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Thu, 19 Aug 2010 20:24:43 +0000 (20:24 +0000)
commitf143efa60c44c65c22aeeb04217f3501e3d04b22
tree5079c2aecb3f6d729a0bfc510309bf9ba9c28be6
parent8e00128d325ad108289347d091a6b054dbfa8ec2
Remove useless NULL check for qemu_strdup return value

Found with this Coccinelle semantic patch:
@@
expression E;
identifier ptr;
identifier fn ~= "qemu_strn?dup";
@@

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

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/virtio-9p-local.c