Manage objfiles with shared_ptr
[deliverable/binutils-gdb.git] / sim / m68hc11 / dv-nvram.c
index 6b8538be15de0d10fb30e130712cc71753a43e00..682a8b2dd6bc841943ff74d6c3462ab3254a457f 100644 (file)
@@ -1,5 +1,5 @@
 /*  dv-nvram.c -- Generic driver for a non volatile ram (battery saved)
-    Copyright (C) 1999-2013 Free Software Foundation, Inc.
+    Copyright (C) 1999-2019 Free Software Foundation, Inc.
     Written by Stephane Carrez (stcarrez@worldnet.fr)
     (From a driver model Contributed by Cygnus Solutions.)
     
@@ -186,7 +186,7 @@ attach_nvram_regs (struct hw *me, struct nvram *controller)
 
     case NVRAM_SAVE_MODIFIED:
     case NVRAM_SAVE_ALL:
-      controller->data = (char*) hw_malloc (me, attach_size);
+      controller->data = hw_malloc (me, attach_size);
       if (controller->data == 0)
         hw_abort (me, "Not enough memory, try to use the mode 'map'");
 
This page took 0.026115 seconds and 4 git commands to generate.