Tag: 496a51bd64eb15f14cee3519f5b75b28d09567e3

staging: lustre: llite: Use kzalloc and rewrite null tests

Author: Julia Lawall <Julia.Lawall@lip6.fr> This patch removes some kzalloc-related macros and rewrites the associated null tests to use !x rather than x == NULL. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression ptr; statement S,S1; @@ \(OBD_ALLOC\|OBD_ALLOC_WAIT\|OBD_ALLOC_PTR\|OBD_ALLOC_PTR_WAIT\)(ptr,…); if ( + ! ptr – == NULL …

Continue reading