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

zip: remove tautology

parent a19dc6ab
......@@ -201,9 +201,8 @@ void AccessClose( vlc_object_t *p_this )
{
access_t *p_access = (access_t*)p_this;
access_sys_t *p_sys = p_access->p_sys;
if( p_sys )
{
unzFile file = p_sys->zipFile;
if( file )
{
unzCloseCurrentFile( file );
......@@ -212,7 +211,6 @@ void AccessClose( vlc_object_t *p_this )
free( p_sys->psz_fileInzip );
free( p_sys->fileFunctions );
free( p_sys );
}
}
/** **************************************************************************
......@@ -270,7 +268,6 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
static ssize_t AccessRead( access_t *p_access, uint8_t *p_buffer, size_t sz )
{
access_sys_t *p_sys = p_access->p_sys;
assert( p_sys );
unzFile file = p_sys->zipFile;
if( !file )
{
......@@ -291,7 +288,6 @@ static ssize_t AccessRead( access_t *p_access, uint8_t *p_buffer, size_t sz )
static int AccessSeek( access_t *p_access, uint64_t seek_len )
{
access_sys_t *p_sys = p_access->p_sys;
assert( p_sys );
unzFile file = p_sys->zipFile;
if( !file )
......
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