Fix warning
arch/arm/plat-omap/dsp/dsp_ctl_core.c: In function 'dsp_ctl_core_open':
arch/arm/plat-omap/dsp/dsp_ctl_core.c:46: warning: ignoring return
value of 'mutex_lock_interruptible', declared with attribute
warn_unused_result
Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
static DEFINE_MUTEX(open_lock);
int ret = 0;
- mutex_lock_interruptible(&open_lock);
+ if (mutex_lock_interruptible(&open_lock))
+ return -EINTR;
if (omap_dsp->initialized == 0) {
ret = dsp_late_init();
if (ret != 0) {