diff options
Diffstat (limited to 'core.c')
-rw-r--r-- | core.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -168,10 +168,10 @@ static int avirt_probe(struct platform_device *devptr) static int avirt_remove(struct platform_device *devptr) { snd_card_free(core.card); - CHK_NULL(coreinfo.playback.streams); - kfree(coreinfo.playback.streams); - CHK_NULL(coreinfo.capture.streams); - kfree(coreinfo.capture.streams); + if (coreinfo.playback.streams) + kfree(coreinfo.playback.streams); + if (coreinfo.capture.streams) + kfree(coreinfo.capture.streams); return 0; } |