projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
flash/stm32l4x: add support of STM32WB1x
[fw/openocd]
/
src
/
pld
/
virtex2.c
diff --git
a/src/pld/virtex2.c
b/src/pld/virtex2.c
index 934a6807c39c57112d4e70532c337ea7387106c1..a2de8ccf55603fe3a19f5ae5a8877807649917da 100644
(file)
--- a/
src/pld/virtex2.c
+++ b/
src/pld/virtex2.c
@@
-26,7
+26,7
@@
static int virtex2_set_instr(struct jtag_tap *tap, uint32_t new_instr)
{
static int virtex2_set_instr(struct jtag_tap *tap, uint32_t new_instr)
{
- if (
tap == NULL
)
+ if (
!tap
)
return ERROR_FAIL;
if (buf_get_u32(tap->cur_instr, 0, tap->ir_length) != new_instr) {
return ERROR_FAIL;
if (buf_get_u32(tap->cur_instr, 0, tap->ir_length) != new_instr) {
@@
-204,7
+204,7
@@
PLD_DEVICE_COMMAND_HANDLER(virtex2_pld_device_command)
return ERROR_COMMAND_SYNTAX_ERROR;
tap = jtag_tap_by_string(CMD_ARGV[1]);
return ERROR_COMMAND_SYNTAX_ERROR;
tap = jtag_tap_by_string(CMD_ARGV[1]);
- if (
tap == NULL
) {
+ if (
!tap
) {
command_print(CMD, "Tap: %s does not exist", CMD_ARGV[1]);
return ERROR_OK;
}
command_print(CMD, "Tap: %s does not exist", CMD_ARGV[1]);
return ERROR_OK;
}