staging: csr: remove panic at locking the mutex
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 25 Oct 2012 05:50:58 +0000 (01:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 19:14:42 +0000 (12:14 -0700)
when down_interruptible fail, means a signal occur, or any other failure
we are panicing, and it seems that we should not panic, instead we would
have done a spinlock, but currently removing the panic call.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/csr_framework_ext.c

index e203f60..e62878e 100644 (file)
@@ -82,7 +82,6 @@ CsrResult CsrMutexLock(CsrMutexHandle *mutexHandle)
 
     if (down_interruptible(mutexHandle))
     {
-        CsrPanic(CSR_TECH_FW, CSR_PANIC_FW_UNEXPECTED_VALUE, "CsrMutexLock Failed");
         return CSR_FE_RESULT_INVALID_POINTER;
     }