diff options
Diffstat (limited to 'sound/oss/ad1889.c')
-rw-r--r-- | sound/oss/ad1889.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/ad1889.c b/sound/oss/ad1889.c index b767c621fd09..2cfd214e4c2a 100644 --- a/sound/oss/ad1889.c +++ b/sound/oss/ad1889.c | |||
@@ -277,8 +277,7 @@ static void ad1889_free_dev(ad1889_dev_t *dev) | |||
277 | 277 | ||
278 | for (j = 0; j < AD_MAX_STATES; j++) { | 278 | for (j = 0; j < AD_MAX_STATES; j++) { |
279 | dmabuf = &dev->state[j].dmabuf; | 279 | dmabuf = &dev->state[j].dmabuf; |
280 | if (dmabuf->rawbuf != NULL) | 280 | kfree(dmabuf->rawbuf); |
281 | kfree(dmabuf->rawbuf); | ||
282 | } | 281 | } |
283 | 282 | ||
284 | kfree(dev); | 283 | kfree(dev); |