diff options
author | 2016-11-18 11:48:42 -0500 | |
---|---|---|
committer | 2016-11-19 14:13:45 +0100 | |
commit | 27b83b3f5b49b4d5fbc036a97a3c9e5c1d6692b2 (patch) | |
tree | 8656f1c8505c545fc036fe81790bbf34cbd9d5e9 /drivers/staging/lustre/include/linux/libcfs/libcfs_private.h | |
parent | staging: lustre: libcfs: remove whitespace in libcfs_fail.h (diff) | |
download | linux-dev-27b83b3f5b49b4d5fbc036a97a3c9e5c1d6692b2.tar.xz linux-dev-27b83b3f5b49b4d5fbc036a97a3c9e5c1d6692b2.zip |
staging: lustre: libcfs: remove NULL comparisons in headers
Remove the NULL comparisions in the libcfs headers.
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/include/linux/libcfs/libcfs_private.h')
-rw-r--r-- | drivers/staging/lustre/include/linux/libcfs/libcfs_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h index 93bff1b94e5c..fc180b8fe922 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h @@ -96,7 +96,7 @@ do { \ #define LIBCFS_ALLOC_POST(ptr, size) \ do { \ - if (unlikely((ptr) == NULL)) { \ + if (!unlikely((ptr))) { \ CERROR("LNET: out of memory at %s:%d (tried to alloc '" \ #ptr "' = %d)\n", __FILE__, __LINE__, (int)(size)); \ } else { \ @@ -147,7 +147,7 @@ do { \ #define LIBCFS_FREE(ptr, size) \ do { \ - if (unlikely((ptr) == NULL)) { \ + if (!unlikely((ptr))) { \ CERROR("LIBCFS: free NULL '" #ptr "' (%d bytes) at " \ "%s:%d\n", (int)(size), __FILE__, __LINE__); \ break; \ |