diff options
| -rw-r--r-- | sound/soc/omap/mcbsp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c index 86c75384c3c8..68a125205375 100644 --- a/sound/soc/omap/mcbsp.c +++ b/sound/soc/omap/mcbsp.c | |||
| @@ -621,8 +621,7 @@ void omap_mcbsp_free(struct omap_mcbsp *mcbsp) | |||
| 621 | mcbsp->reg_cache = NULL; | 621 | mcbsp->reg_cache = NULL; |
| 622 | spin_unlock(&mcbsp->lock); | 622 | spin_unlock(&mcbsp->lock); |
| 623 | 623 | ||
| 624 | if (reg_cache) | 624 | kfree(reg_cache); |
| 625 | kfree(reg_cache); | ||
| 626 | } | 625 | } |
| 627 | 626 | ||
| 628 | /* | 627 | /* |
