The Mutex object will always have an adress, this cannot be
checked against NULL in any sane fashion.
Change-Id: I8c7589e49ffb5dde65d2bdf3787983fb9d2784b0
bool FimgV4x::t_Lock(void)
{
- if (&m_lock != NULL) {
- status_t ret = m_lock.lock();
- return true;
- }
- PRINT("%s::m_lock is NULL",__func__);
- return false;
+ return m_lock.lock();
}
bool FimgV4x::t_UnLock(void)
{
- if (&m_lock != NULL) {
- m_lock.unlock();
- return true;
- }
- PRINT("%s::m_lock is NULL",__func__);
- return false;
+ m_lock.unlock();
+ return true;
}
bool FimgV4x::m_CreateG2D(void)