Remove dead code, and do close smem file descriptor during un-init

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18554 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
poirierg 2006-05-30 23:18:05 +00:00
parent e69e4dfd82
commit ada9903693
1 changed files with 2 additions and 2 deletions

View File

@ -265,9 +265,9 @@ static int preinit(const char *arg)
if((long)smem == -1) {
mp_msg(MSGT_VO, MSGL_FATAL, "s3fb: Couldn't map memory areas: %s\n", strerror(errno));
if((long)smem != -1)
munmap(smem, fb_finfo.smem_len);
smem = NULL;
close(fd);
fd = -1;
return -1;
}