diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2011-10-23 12:16:26 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvindharboe@gmail.com> | 2011-10-23 15:17:09 +0000 |
commit | 8e8ff02b74fd98fcff080ecb081312d2a08f314e (patch) | |
tree | 7a20cae41aea3b9aa4d24702be83c57aeb03cff1 /src | |
parent | 09fbc0ab8649c69a9f97fa4ed599db836a2c0152 (diff) |
SERVER: fix clang warning
The fix is inline with the Linux coding style that forbids
assignment in if condition
Change-Id: I0b9d0b419d9c8b7a8c755e048d5faf72d1658ba2
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/87
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/server/server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/server.c b/src/server/server.c index bb60fc57..a7fddf67 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -487,7 +487,8 @@ int server_loop(struct command_context *command_context) { if ((FD_ISSET(c->fd, &read_fds)) || c->input_pending) { - if ((retval = service->input(c)) != ERROR_OK) + retval = service->input(c); + if (retval != ERROR_OK) { struct connection *next = c->next; if (service->type == CONNECTION_PIPE) |