summaryrefslogtreecommitdiff
path: root/src/jtag/presto.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:40:10 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:40:10 +0000
commit4ce93ac479c29210c4b472a16733bed2537c35f9 (patch)
tree32b3f91bc20272afc249a4bd683956f2d98a5852 /src/jtag/presto.c
parent128a73342856217e98a5da64b2805e062fd4e00d (diff)
downloadopenocd+libswd-4ce93ac479c29210c4b472a16733bed2537c35f9.tar.gz
openocd+libswd-4ce93ac479c29210c4b472a16733bed2537c35f9.tar.bz2
openocd+libswd-4ce93ac479c29210c4b472a16733bed2537c35f9.tar.xz
openocd+libswd-4ce93ac479c29210c4b472a16733bed2537c35f9.zip
- Fixes '>=' whitespace
- Replace ')\(>=\)\(\w\)' with ') \1 \2'. - Replace '\(\w\)\(>=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2367 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/presto.c')
-rw-r--r--src/jtag/presto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/presto.c b/src/jtag/presto.c
index bd1cc5d4..8985cd76 100644
--- a/src/jtag/presto.c
+++ b/src/jtag/presto.c
@@ -652,14 +652,14 @@ static int presto_bitq_flush(void)
static int presto_bitq_in_rdy(void)
{
- if (presto->buff_in_pos>=presto->buff_in_len)
+ if (presto->buff_in_pos >= presto->buff_in_len)
return 0;
return presto->buff_in_len-presto->buff_in_pos;
}
static int presto_bitq_in(void)
{
- if (presto->buff_in_pos>=presto->buff_in_len)
+ if (presto->buff_in_pos >= presto->buff_in_len)
return -1;
if (presto->buff_in[presto->buff_in_pos++]&0x08) return 1;
return 0;