staging: csr: remove CsrMutexLock function
nobody inside the csr directory is calling this function, so remove this Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cd2112220b
commit
1d08782c0e
@@ -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
|
* NAME
|
||||||
* CsrMutexUnlock
|
* CsrMutexUnlock
|
||||||
|
@@ -111,21 +111,6 @@ void CsrEventDestroy(CsrEventHandle *eventHandle);
|
|||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
CsrResult CsrMutexCreate(CsrMutexHandle *mutexHandle);
|
CsrResult CsrMutexCreate(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);
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*
|
/*----------------------------------------------------------------------------*
|
||||||
* NAME
|
* NAME
|
||||||
* CsrMutexUnlock
|
* CsrMutexUnlock
|
||||||
|
Reference in New Issue
Block a user