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>
This commit is contained in:
Antonio Borneo 2011-10-23 12:16:26 +08:00 committed by Øyvind Harboe
parent 09fbc0ab86
commit 8e8ff02b74

View File

@ -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)