From 7beedbb96f503f1a2b546f4551e4c2efb43502c3 Mon Sep 17 00:00:00 2001 From: Dirk Behme Date: Fri, 18 May 2007 09:13:20 +0200 Subject: [PATCH] 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 --- arch/arm/plat-omap/dsp/dsp_ctl_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.41.1