vserver 1.9.5.x5
[linux-2.6.git] / drivers / mtd / devices / ms02-nv.c
index 42417b0..380ff08 100644 (file)
@@ -6,7 +6,7 @@
  *     as published by the Free Software Foundation; either version
  *     2 of the License, or (at your option) any later version.
  *
- *     $Id: ms02-nv.c,v 1.7 2004/07/29 14:16:45 macro Exp $
+ *     $Id: ms02-nv.c,v 1.8 2005/01/05 18:05:12 dwmw2 Exp $
  */
 
 #include <linux/init.h>
@@ -59,7 +59,7 @@ static struct mtd_info *root_ms02nv_mtd;
 static int ms02nv_read(struct mtd_info *mtd, loff_t from,
                        size_t len, size_t *retlen, u_char *buf)
 {
-       struct ms02nv_private *mp = (struct ms02nv_private *)mtd->priv;
+       struct ms02nv_private *mp = mtd->priv;
 
        if (from + len > mtd->size)
                return -EINVAL;
@@ -73,7 +73,7 @@ static int ms02nv_read(struct mtd_info *mtd, loff_t from,
 static int ms02nv_write(struct mtd_info *mtd, loff_t to,
                        size_t len, size_t *retlen, const u_char *buf)
 {
-       struct ms02nv_private *mp = (struct ms02nv_private *)mtd->priv;
+       struct ms02nv_private *mp = mtd->priv;
 
        if (to + len > mtd->size)
                return -EINVAL;
@@ -265,7 +265,7 @@ err_out_mod_res:
 static void __exit ms02nv_remove_one(void)
 {
        struct mtd_info *mtd = root_ms02nv_mtd;
-       struct ms02nv_private *mp = (struct ms02nv_private *)mtd->priv;
+       struct ms02nv_private *mp = mtd->priv;
 
        root_ms02nv_mtd = mp->next;