]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/drm/ffb_drv.c
[MIPS] Remove IT8172-based platforms, ITE 8172G and Globespan IVR support.
[linux-2.6-omap-h63xx.git] / drivers / char / drm / ffb_drv.c
index 5c121d6df9f2d4139d4ae76a7451bd6e826da216..dd45111a48547619063d30dfdadd2eb2c78a81ba 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) 2000 David S. Miller (davem@redhat.com)
  */
 
-#include <linux/config.h>
 #include "ffb.h"
 #include "drmP.h"
 
@@ -245,14 +244,12 @@ static void ffb_driver_release(drm_device_t * dev, struct file *filp)
 
 static void ffb_driver_pretakedown(drm_device_t * dev)
 {
-       if (dev->dev_private)
-               kfree(dev->dev_private);
+       kfree(dev->dev_private);
 }
 
 static int ffb_driver_postcleanup(drm_device_t * dev)
 {
-       if (ffb_position != NULL)
-               kfree(ffb_position);
+       kfree(ffb_position);
        return 0;
 }