summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-13 09:08:27 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-13 09:08:27 +0000
commit545fc5e329dd80e766b4a1001a83b80855af877b (patch)
tree0b363cd47db6770bcdb16be438652fe0bc7b151e /sys/src
parent76f99f7cb3731b3718209aee445ad409f184a3a9 (diff)
rio: remove useless if()
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/rio/rio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c
index 04e0f8b54..ae1edcaf3 100644
--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -1243,8 +1243,7 @@ kbdproc(void *arg)
}
}
n = e - p;
- if(n > 0)
- memmove(buf, p, n);
+ memmove(buf, p, n);
p = buf + n;
}
close(fd);