Skip to content

Commit 94602d8

Browse files
rfvirgilbroonie
authored andcommitted
ASoC: wm_adsp: Don't use no_free_ptr() when passing to PTR_ERR()
It's no longer necessary to no_free_ptr() an auto-freed pointer before passing it to PTR_ERR(). This was fixed by commit cd7eb8f ("mm/slab: make __free(kfree) accept error pointers"). Removing the no_free_ptr() avoids the spurious warning "inconsistent IS_ERR and PTR_ERR". Fixes: b5d057a ("ASoC: wm_adsp: Use vmemdup_user() instead of open-coding") Signed-off-by: Richard Fitzgerald <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 84dea31 commit 94602d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/wm_adsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static int wm_coeff_tlv_put(struct snd_kcontrol *kctl,
419419
void *scratch __free(kvfree) = vmemdup_user(bytes, size);
420420

421421
if (IS_ERR(scratch))
422-
return PTR_ERR(no_free_ptr(scratch));
422+
return PTR_ERR(scratch);
423423

424424
return cs_dsp_coeff_lock_and_write_ctrl(cs_ctl, 0, scratch, size);
425425
}

0 commit comments

Comments
 (0)