]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commit
tools: remove unnecessary null pointer checks before frees
authorMatthew Daley <mattjd@gmail.com>
Tue, 15 Oct 2013 05:18:02 +0000 (18:18 +1300)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Oct 2013 20:04:25 +0000 (20:04 +0000)
commitc50dc17d323739c4c1aff286897530e8f3da7fa2
tree5fd774d4fb8a1743563827000645d760cd5053f3
parent3b82ca8127b7f71b271015f31a7d18017073de7d
tools: remove unnecessary null pointer checks before frees

Patch generated by the following semantic patch
(http://coccinelle.lip6.fr/):

@@
expression *P;
@@

- if(P) free(P);
+ free(P);

...and then by filtering through the following command:

filterdiff -p1 -x 'stubdom/*' -x 'tools/firmware/*' -x 'tools/qemu-*' -x 'tools/blktap*'

Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
blkfront.c
console/xenbus.c
fbfront.c
kernel.c
lib/sys.c
netfront.c
pcifront.c