Tag: 3f3420df505e47751ef76a652b5cb660e5360d6f

Btrfs: fs/btrfs/volumes.c: remove useless kzalloc

Author: Julia Lawall <julia@diku.dk> The call to kzalloc is followed by a kmalloc whose result is stored in the same variable. The semantic match that finds the problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // @r exists@ local idexpression x; statement S; expression E; identifier f,l; position p1,p2; expression *ptr != NULL; @@ ( if ((x@p1 = …

Continue reading