Commit e86bc7ed authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

framebuffer: Remove pointless test

The error value for mmap() is MAP_FAILED, which is not nul. But we
check for that case in Open() anyway.
parent 484a11ef
......@@ -944,12 +944,9 @@ static int OpenDisplay( vout_thread_t *p_vout )
*****************************************************************************/
static void CloseDisplay( vout_thread_t *p_vout )
{
if( p_vout->p_sys->p_video )
{
/* Clear display */
memset( p_vout->p_sys->p_video, 0, p_vout->p_sys->i_page_size );
munmap( p_vout->p_sys->p_video, p_vout->p_sys->i_page_size );
}
if( p_vout->p_sys->i_fd >= 0 )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment