staging: csr: remove CsrMutexLock function
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / csr / csr_framework_ext.c
index e62878ecbd25c76afe7b4db6d5b8cf03939b61ad..2033e9755e4fc58a3d4de84cf33d339cff533d21 100644 (file)
@@ -60,34 +60,6 @@ void CsrMutexDestroy(CsrMutexHandle *mutexHandle)
 {
 }
 
-/*----------------------------------------------------------------------------*
- *  NAME
- *      CsrMutexLock
- *
- *  DESCRIPTION
- *      Lock the mutex refered to by the provided handle.
- *
- *  RETURNS
- *      Possible values:
- *          CSR_RESULT_SUCCESS           in case of success
- *          CSR_FE_RESULT_INVALID_HANDLE    in case the mutexHandle is invalid
- *
- *----------------------------------------------------------------------------*/
-CsrResult CsrMutexLock(CsrMutexHandle *mutexHandle)
-{
-    if (mutexHandle == NULL)
-    {
-        return CSR_FE_RESULT_INVALID_POINTER;
-    }
-
-    if (down_interruptible(mutexHandle))
-    {
-        return CSR_FE_RESULT_INVALID_POINTER;
-    }
-
-    return CSR_RESULT_SUCCESS;
-}
-
 /*----------------------------------------------------------------------------*
  *  NAME
  *      CsrMutexUnlock