mtd: ms02-nv: remove superfluous name cast

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 28 00:59:01 EST 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=da6fcf0e3720b94197432510f3d455ed9243773f
Commit:     da6fcf0e3720b94197432510f3d455ed9243773f
Parent:     8ca14e12a75216060e5dfbfe28a5efc5c230e08c
Author:     Geert Uytterhoeven <geert at linux-m68k.org>
AuthorDate: Tue Nov 12 20:07:23 2013 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jan 3 11:22:09 2014 -0800

    mtd: ms02-nv: remove superfluous name cast
    
    mtd_info.name is "const char *"
    
    Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>
    Cc: David Woodhouse <dwmw2 at infradead.org>
    Cc: linux-mtd at lists.infradead.org
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/devices/ms02-nv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/devices/ms02-nv.c b/drivers/mtd/devices/ms02-nv.c
index 182849d..5c8b322 100644
--- a/drivers/mtd/devices/ms02-nv.c
+++ b/drivers/mtd/devices/ms02-nv.c
@@ -205,7 +205,7 @@ static int __init ms02nv_init_one(ulong addr)
 	mtd->type = MTD_RAM;
 	mtd->flags = MTD_CAP_RAM;
 	mtd->size = fixsize;
-	mtd->name = (char *)ms02nv_name;
+	mtd->name = ms02nv_name;
 	mtd->owner = THIS_MODULE;
 	mtd->_read = ms02nv_read;
 	mtd->_write = ms02nv_write;



More information about the linux-mtd-cvs mailing list