diff options
author | Himanshu Jha <himanshujha199640@gmail.com> | 2017-08-31 18:06:42 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-31 21:10:30 +0300 |
commit | 39cdc62b1b4efa39831d4de22f990043b0304fff (patch) | |
tree | abfd94323da95b2045c317eb19a07bd872d38202 /sound/pci/ctxfi/ctsrc.c | |
parent | c054c8a0c3a8a7e2ec2d6d5a628821f3cb832538 (diff) | |
download | linux-39cdc62b1b4efa39831d4de22f990043b0304fff.tar.xz |
ALSA: ctxfi: Remove null check before kfree
kfree on NULL pointer is a no-op and therefore checking is redundant.
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/ctsrc.c')
-rw-r--r-- | sound/pci/ctxfi/ctsrc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/ctxfi/ctsrc.c b/sound/pci/ctxfi/ctsrc.c index a5a72df29801..bb4c9c3c89ae 100644 --- a/sound/pci/ctxfi/ctsrc.c +++ b/sound/pci/ctxfi/ctsrc.c @@ -702,10 +702,8 @@ error1: static int srcimp_rsc_uninit(struct srcimp *srcimp) { - if (NULL != srcimp->imappers) { - kfree(srcimp->imappers); - srcimp->imappers = NULL; - } + kfree(srcimp->imappers); + srcimp->imappers = NULL; srcimp->ops = NULL; srcimp->mgr = NULL; rsc_uninit(&srcimp->rsc); |