summaryrefslogtreecommitdiff
path: root/src/pld
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-06 07:21:46 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-06 07:21:46 +0000
commite86dee32004d750e8654fe449bfcdffaed7339fa (patch)
treee3ecf5d73d7ef84947d3f80d443b5d6c3cf1b600 /src/pld
parent7e50a3977327c52e9e04f9cf3ac1cd0a54f042b2 (diff)
downloadopenocd+libswd-e86dee32004d750e8654fe449bfcdffaed7339fa.tar.gz
openocd+libswd-e86dee32004d750e8654fe449bfcdffaed7339fa.tar.bz2
openocd+libswd-e86dee32004d750e8654fe449bfcdffaed7339fa.tar.xz
openocd+libswd-e86dee32004d750e8654fe449bfcdffaed7339fa.zip
remove unecessary setting of deprecated fields to NULL
git-svn-id: svn://svn.berlios.de/openocd/trunk@1611 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/pld')
-rw-r--r--src/pld/virtex2.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c
index cec4fe9d..f9043217 100644
--- a/src/pld/virtex2.c
+++ b/src/pld/virtex2.c
@@ -56,12 +56,12 @@ int virtex2_set_instr(jtag_tap_t *tap, u32 new_instr)
field.num_bits = tap->ir_length;
field.out_value = calloc(CEIL(field.num_bits, 8), 1);
buf_set_u32(field.out_value, 0, field.num_bits, new_instr);
-
+
field.in_value = NULL;
- field.in_check_value = NULL;
- field.in_check_mask = NULL;
+
+
field.in_handler = NULL;
- field.in_handler_priv = NULL;
+
jtag_add_ir_scan(1, &field, TAP_IDLE);
@@ -84,10 +84,7 @@ int virtex2_send_32(struct pld_device_s *pld_device, int num_words, u32 *words)
scan_field.num_bits = num_words * 32;
scan_field.out_value = values;
scan_field.in_value = NULL;
- scan_field.in_check_value = NULL;
- scan_field.in_check_mask = NULL;
scan_field.in_handler = NULL;
- scan_field.in_handler_priv = NULL;
for (i = 0; i < num_words; i++)
buf_set_u32(values + 4 * i, 0, 32, flip_u32(*words++, 32));
@@ -117,8 +114,6 @@ int virtex2_receive_32(struct pld_device_s *pld_device, int num_words, u32 *word
scan_field.num_bits = 32;
scan_field.out_value = NULL;
scan_field.in_value = NULL;
- scan_field.in_check_value = NULL;
- scan_field.in_check_mask = NULL;
scan_field.in_handler = virtex2_jtag_buf_to_u32; /* deprecated! invoke this from user code! */
virtex2_set_instr(virtex2_info->tap, 0x4); /* CFG_OUT */
@@ -164,12 +159,12 @@ int virtex2_load(struct pld_device_s *pld_device, char *filename)
scan_field_t field;
field.tap = virtex2_info->tap;
-
+
field.in_value = NULL;
- field.in_check_value = NULL;
- field.in_check_mask = NULL;
+
+
field.in_handler = NULL;
- field.in_handler_priv = NULL;
+
if ((retval = xilinx_read_bit_file(&bit_file, filename)) != ERROR_OK)
return retval;