OSDN Git Service

Remove some older Linux 2.3.99 code
authorAlan Hourihane <alanh@fairlite.demon.co.uk>
Fri, 17 May 2002 08:35:47 +0000 (08:35 +0000)
committerAlan Hourihane <alanh@fairlite.demon.co.uk>
Fri, 17 May 2002 08:35:47 +0000 (08:35 +0000)
linux-core/i830_dma.c
linux/i830_dma.c

index 6d0e322..e83ac5e 100644 (file)
@@ -247,14 +247,11 @@ static int i830_unmap_buffer(drm_buf_t *buf)
 #else
                down_write( &current->mm->mmap_sem );
 #endif
-#if LINUX_VERSION_CODE < 0x020399
-               retcode = do_munmap((unsigned long)buf_priv->virtual, 
-                                   (size_t) buf->total);
-#else
+
                retcode = do_munmap(current->mm, 
                                    (unsigned long)buf_priv->virtual, 
                                    (size_t) buf->total);
-#endif
+
 #if LINUX_VERSION_CODE <= 0x020402
                up( &current->mm->mmap_sem );
 #else
index 6d0e322..e83ac5e 100644 (file)
@@ -247,14 +247,11 @@ static int i830_unmap_buffer(drm_buf_t *buf)
 #else
                down_write( &current->mm->mmap_sem );
 #endif
-#if LINUX_VERSION_CODE < 0x020399
-               retcode = do_munmap((unsigned long)buf_priv->virtual, 
-                                   (size_t) buf->total);
-#else
+
                retcode = do_munmap(current->mm, 
                                    (unsigned long)buf_priv->virtual, 
                                    (size_t) buf->total);
-#endif
+
 #if LINUX_VERSION_CODE <= 0x020402
                up( &current->mm->mmap_sem );
 #else