From: Geert Uytterhoeven Date: Tue, 12 Nov 2013 19:07:23 +0000 (+0100) Subject: mtd: ms02-nv: remove superfluous name cast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da6fcf0e3720b94197432510f3d455ed9243773f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mtd: ms02-nv: remove superfluous name cast mtd_info.name is "const char *" Signed-off-by: Geert Uytterhoeven Cc: David Woodhouse Cc: linux-mtd@lists.infradead.org Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/devices/ms02-nv.c b/drivers/mtd/devices/ms02-nv.c index 182849d39c61..5c8b322ba904 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;