mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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>
This commit is contained in:
parent
c054c8a0c3
commit
39cdc62b1b
@ -258,10 +258,8 @@ error:
|
||||
|
||||
int rsc_mgr_uninit(struct rsc_mgr *mgr)
|
||||
{
|
||||
if (NULL != mgr->rscs) {
|
||||
kfree(mgr->rscs);
|
||||
mgr->rscs = NULL;
|
||||
}
|
||||
|
||||
if ((NULL != mgr->hw) && (NULL != mgr->ctrl_blk)) {
|
||||
switch (mgr->type) {
|
||||
|
@ -702,10 +702,8 @@ error1:
|
||||
|
||||
static int srcimp_rsc_uninit(struct srcimp *srcimp)
|
||||
{
|
||||
if (NULL != srcimp->imappers) {
|
||||
kfree(srcimp->imappers);
|
||||
srcimp->imappers = NULL;
|
||||
}
|
||||
srcimp->ops = NULL;
|
||||
srcimp->mgr = NULL;
|
||||
rsc_uninit(&srcimp->rsc);
|
||||
|
Loading…
Reference in New Issue
Block a user