mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
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 <sachin.kamat@samsung.com> Acked-by: Andreas Noever <andreas.noever@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c9c2deef45
commit
8db353bdd0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user