Skip to content

Commit

Permalink
staging: csr: remove CsrMutexLock function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Oct 26, 2012
1 parent cd21122 commit 1d08782
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
28 changes: 0 additions & 28 deletions drivers/staging/csr/csr_framework_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 0 additions & 15 deletions drivers/staging/csr/csr_framework_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,6 @@ void CsrEventDestroy(CsrEventHandle *eventHandle);
*----------------------------------------------------------------------------*/
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
* CsrMutexUnlock
Expand Down

0 comments on commit 1d08782

Please sign in to comment.