浏览代码

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>
Sachin Kamat 11 年之前
父节点
当前提交
f19b72c6e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/thunderbolt/nhi.c

+ 1 - 1
drivers/thunderbolt/nhi.c

@@ -416,7 +416,7 @@ void ring_free(struct tb_ring *ring)
 			  ring->size * sizeof(*ring->descriptors),
 			  ring->size * sizeof(*ring->descriptors),
 			  ring->descriptors, ring->descriptors_dma);
 			  ring->descriptors, ring->descriptors_dma);
 
 
-	ring->descriptors = 0;
+	ring->descriptors = NULL;
 	ring->descriptors_dma = 0;
 	ring->descriptors_dma = 0;