28 lines
934 B
Diff
28 lines
934 B
Diff
From: Sachin Kamat <sachin.kamat@samsung.com>
|
|
Date: Fri, 20 Jun 2014 14:32:33 +0530
|
|
Subject: [20/31] thunderbolt: Use NULL instead of 0 in nhi.c
|
|
Origin: https://git.kernel.org/linus/f19b72c6e8bb0bc257d09da6e324841d27a68528
|
|
|
|
'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>
|
|
---
|
|
drivers/thunderbolt/nhi.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/thunderbolt/nhi.c b/drivers/thunderbolt/nhi.c
|
|
index 346b41e..0fc137a 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;
|
|
|
|
|