]> git.proxmox.com Git - mirror_qemu.git/blob - scripts/coccinelle/error_propagate_null.cocci
hw: Remove unnecessary cast when calling dma_memory_read()
[mirror_qemu.git] / scripts / coccinelle / error_propagate_null.cocci
1 // error_propagate() already ignores local_err==NULL, so there's
2 // no need to check it before calling.
3
4 @@
5 identifier L;
6 expression E;
7 @@
8 -if (L) {
9 error_propagate(E, L);
10 -}