thunderbolt: Use NULL instead of 0 in ctl.c
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:02:32 +0000 (14:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 16:44:42 +0000 (09:44 -0700)
The function returns a pointer. Hence return NULL instead 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/ctl.c

index d04fee4..4c6da92 100644 (file)
@@ -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;
 }