summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thunderbolt/ctl.c')
-rw-r--r--drivers/thunderbolt/ctl.c4
1 files changed, 2 insertions, 2 deletions
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)
305{ 305{
306 struct ctl_pkg *pkg = kzalloc(sizeof(*pkg), GFP_KERNEL); 306 struct ctl_pkg *pkg = kzalloc(sizeof(*pkg), GFP_KERNEL);
307 if (!pkg) 307 if (!pkg)
308 return 0; 308 return NULL;
309 pkg->ctl = ctl; 309 pkg->ctl = ctl;
310 pkg->buffer = dma_pool_alloc(ctl->frame_pool, GFP_KERNEL, 310 pkg->buffer = dma_pool_alloc(ctl->frame_pool, GFP_KERNEL,
311 &pkg->frame.buffer_phy); 311 &pkg->frame.buffer_phy);
312 if (!pkg->buffer) { 312 if (!pkg->buffer) {
313 kfree(pkg); 313 kfree(pkg);
314 return 0; 314 return NULL;
315 } 315 }
316 return pkg; 316 return pkg;
317} 317}