diff options
author | Blue Swirl | 2010-08-19 22:24:43 +0200 |
---|---|---|
committer | Blue Swirl | 2010-08-19 22:24:43 +0200 |
commit | f143efa60c44c65c22aeeb04217f3501e3d04b22 (patch) | |
tree | 5079c2aecb3f6d729a0bfc510309bf9ba9c28be6 /os-posix.c | |
parent | Remove useless NULL checks for qemu_malloc return value (diff) | |
download | qemu-f143efa60c44c65c22aeeb04217f3501e3d04b22.tar.gz qemu-f143efa60c44c65c22aeeb04217f3501e3d04b22.tar.xz qemu-f143efa60c44c65c22aeeb04217f3501e3d04b22.zip |
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>
Diffstat (limited to 'os-posix.c')
0 files changed, 0 insertions, 0 deletions