diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-20 05:02:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-20 12:44:42 -0400 |
commit | f19b72c6e8bb0bc257d09da6e324841d27a68528 (patch) | |
tree | a1b40350227d7af8a1c663a31384defd29aaf164 /drivers/thunderbolt | |
parent | 8db353bdd0975c220a62091f4fd28966478550fb (diff) |
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.c | 2 |
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) | |||
416 | ring->size * sizeof(*ring->descriptors), | 416 | ring->size * sizeof(*ring->descriptors), |
417 | ring->descriptors, ring->descriptors_dma); | 417 | ring->descriptors, ring->descriptors_dma); |
418 | 418 | ||
419 | ring->descriptors = 0; | 419 | ring->descriptors = NULL; |
420 | ring->descriptors_dma = 0; | 420 | ring->descriptors_dma = 0; |
421 | 421 | ||
422 | 422 | ||