diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-08-19 20:24:39 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-08-19 20:24:39 +0000 |
commit | 8e00128d325ad108289347d091a6b054dbfa8ec2 (patch) | |
tree | 8c1d7a3d5983871f60292eba42f523fd6e95b078 /input.c | |
parent | 760e77eab53f5d92eb0c587e04fd942a905b46af (diff) | |
download | hqemu-8e00128d325ad108289347d091a6b054dbfa8ec2.zip hqemu-8e00128d325ad108289347d091a6b054dbfa8ec2.tar.gz |
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>
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions