• Dridi Boukelmoune's avatar
    Use the TAKE_OBJ_NOTNULL macro where relevant · e6755a5d
    Dridi Boukelmoune authored
    This patch was created using Coccinelle and the following steps:
    
       $ cat >take.cocci <<EOF
       @@
       expression t, f;
       constant m;
       @@
    
       - AN(f);
       - t = *f;
       - *f = NULL;
       - CHECK_OBJ_NOTNULL(t, m);
       + TAKE_OBJ_NOTNULL(t, f, m);
       EOF
       $ spatch --sp-file take.cocci --dir . --in-place
    e6755a5d
Name
Last commit
Last update
..
mgt_stevedore.c Loading commit data...
mgt_storage_persistent.c Loading commit data...
stevedore.c Loading commit data...
stevedore_utils.c Loading commit data...
storage.h Loading commit data...
storage_file.c Loading commit data...
storage_lru.c Loading commit data...
storage_malloc.c Loading commit data...
storage_persistent.c Loading commit data...
storage_persistent.h Loading commit data...
storage_persistent_silo.c Loading commit data...
storage_persistent_subr.c Loading commit data...
storage_simple.c Loading commit data...
storage_simple.h Loading commit data...
storage_umem.c Loading commit data...