From 8db353bdd0975c220a62091f4fd28966478550fb Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Fri, 20 Jun 2014 14:32:32 +0530 Subject: thunderbolt: Use NULL instead of 0 in ctl.c The function returns a pointer. Hence return NULL instead of 0. Signed-off-by: Sachin Kamat Acked-by: Andreas Noever Signed-off-by: Greg Kroah-Hartman --- drivers/thunderbolt/ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/thunderbolt/ctl.c') diff --git a/drivers/thunderbolt/ctl.c b/drivers/thunderbolt/ctl.c index d04fee4acb2e..4c6da92edcb4 100644 --- a/drivers/thunderbolt/ctl.c +++ b/drivers/thunderbolt/ctl.c @@ -305,13 +305,13 @@ static struct ctl_pkg *tb_ctl_pkg_alloc(struct tb_ctl *ctl) { struct ctl_pkg *pkg = kzalloc(sizeof(*pkg), GFP_KERNEL); if (!pkg) - return 0; + return NULL; pkg->ctl = ctl; pkg->buffer = dma_pool_alloc(ctl->frame_pool, GFP_KERNEL, &pkg->frame.buffer_phy); if (!pkg->buffer) { kfree(pkg); - return 0; + return NULL; } return pkg; } -- cgit v1.2.3