From: Dirk Behme Date: Fri, 18 May 2007 07:13:20 +0000 (+0200) Subject: ARM: OMAP: Fix warning in dsp_ctl_core.c X-Git-Tag: v2.6.22-omap1~141 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7beedbb96f503f1a2b546f4551e4c2efb43502c3;p=linux-2.6-omap-h63xx.git ARM: OMAP: Fix warning in dsp_ctl_core.c 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/dsp/dsp_ctl_core.c b/arch/arm/plat-omap/dsp/dsp_ctl_core.c index d17a5c86f6a..956ef269871 100644 --- a/arch/arm/plat-omap/dsp/dsp_ctl_core.c +++ b/arch/arm/plat-omap/dsp/dsp_ctl_core.c @@ -43,7 +43,8 @@ static int dsp_ctl_core_open(struct inode *inode, struct file *file) 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) {