diff options
author | 2007-01-03 00:53:38 +0000 | |
---|---|---|
committer | 2007-01-03 00:53:38 +0000 | |
commit | 5a86df765bac2989259ca88f3063993384c95b03 (patch) | |
tree | d65d363f4c4eb7b5e940de583e66086937007858 | |
parent | - fix cvs_client_remove_entry to correctly handle the passed data (diff) | |
download | wireguard-openbsd-5a86df765bac2989259ca88f3063993384c95b03.tar.xz wireguard-openbsd-5a86df765bac2989259ca88f3063993384c95b03.zip |
remove small dead code; arnaud.lacombe.1@ulaval.ca via Coverity scan
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 407ace2f7ab..7adf2f8e1a5 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.156 2006/11/14 19:41:04 deraadt Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.157 2007/01/03 00:53:38 stevesk Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -339,9 +339,8 @@ get_line(FILE *fp, char *line, size_t len) line[pos++] = c; line[pos] = '\0'; } - if (c == EOF) - return -1; - return pos; + /* We reached EOF */ + return -1; } static void |