tcl/target|board: add config Atheros ar2313
[fw/openocd] / src / target / arm11_dbgtap.c
index e190e292cf5972e8ad87b2d4d212acd813e96f9c..9271a2b96a9ba1da71d4482270fadff154b40a34 100644 (file)
@@ -17,7 +17,7 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.           *
  ***************************************************************************/
 
 #ifdef HAVE_CONFIG_H
@@ -591,7 +591,7 @@ int arm11_run_instr_data_to_core_noack_inner_default(struct jtag_tap *tap,
        unsigned readiesNum = count;
        unsigned bytes = sizeof(*Readies)*readiesNum;
 
-       Readies = (uint8_t *) malloc(bytes);
+       Readies = malloc(bytes);
        if (Readies == NULL) {
                LOG_ERROR("Out of memory allocating %u bytes", bytes);
                return ERROR_FAIL;
@@ -599,7 +599,7 @@ int arm11_run_instr_data_to_core_noack_inner_default(struct jtag_tap *tap,
 
        uint8_t *ReadyPos                        = Readies;
        while (count--) {
-               chain5_fields[0].out_value      = (void *)(data++);
+               chain5_fields[0].out_value      = (uint8_t *)(data++);
                chain5_fields[1].in_value       = ReadyPos++;
 
                if (count > 0) {