>From <ka...@redhat.com>:

ka...@redhat.com has uploaded this change for review. ( 
https://review.gerrithub.io/389589


Change subject: clean up gsh_malloc(), gsh_calloc(), and gsh_free()
......................................................................

clean up gsh_malloc(), gsh_calloc(), and gsh_free()

gsh_malloc() and gsh_calloc() always return a valid pointer (or
they abort()), no need to check != NULL.

gsh_free() (like free(3)) handles NULL, no need to check for
ptr != NULL before calling gsh_free().

Change-Id: I888b6f32120365464ba4cd5c4b35fda17f871493
Signed-off-by: Kaleb S. KEITHLEY <kkeit...@redhat.com>
---
M src/FSAL/FSAL_GLUSTER/export.c
M src/FSAL/FSAL_GPFS/handle.c
M src/FSAL/FSAL_MEM/mem_export.c
M src/FSAL/FSAL_PROXY/handle.c
M src/FSAL/FSAL_RGW/internal.c
M src/FSAL/FSAL_RGW/main.c
M src/FSAL/FSAL_VFS/export.c
M src/FSAL/FSAL_VFS/handle.c
M src/FSAL/FSAL_VFS/state.c
M src/MainNFSD/nfs_rpc_callback.c
M src/SAL/nfs4_clientid.c
M src/SAL/nfs4_owner.c
M src/SAL/nlm_owner.c
M src/SAL/state_lock.c
M src/SAL/state_misc.c
15 files changed, 35 insertions(+), 104 deletions(-)



  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/89/389589/1
-- 
To view, visit https://review.gerrithub.io/389589
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I888b6f32120365464ba4cd5c4b35fda17f871493
Gerrit-Change-Number: 389589
Gerrit-PatchSet: 1
Gerrit-Owner: ka...@redhat.com
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to