summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-20 14:32:33 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-20 09:44:42 -0700
commitf19b72c6e8bb0bc257d09da6e324841d27a68528 (patch)
treea1b40350227d7af8a1c663a31384defd29aaf164 /drivers/thunderbolt
parent8db353bdd0975c220a62091f4fd28966478550fb (diff)
downloadlinux-f19b72c6e8bb0bc257d09da6e324841d27a68528.tar.gz
linux-f19b72c6e8bb0bc257d09da6e324841d27a68528.tar.bz2
linux-f19b72c6e8bb0bc257d09da6e324841d27a68528.zip
thunderbolt: Use NULL instead of 0 in nhi.c
'descriptors' is a pointer. Use NULL isntead of 0. Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Acked-by: Andreas Noever <andreas.noever@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r--drivers/thunderbolt/nhi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/nhi.c b/drivers/thunderbolt/nhi.c
index 346b41e7d5d1..0fc137af89f5 100644
--- a/drivers/thunderbolt/nhi.c
+++ b/drivers/thunderbolt/nhi.c
@@ -416,7 +416,7 @@ void ring_free(struct tb_ring *ring)
ring->size * sizeof(*ring->descriptors),
ring->descriptors, ring->descriptors_dma);
- ring->descriptors = 0;
+ ring->descriptors = NULL;
ring->descriptors_dma = 0;