diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2007-01-03 00:53:39 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2007-01-03 00:53:39 +0000 |
commit | b6cbde572340b91955c8b072cf5daa7d0d66269d (patch) | |
tree | 453e54c33363c6b83f9623606a634ba83a3c9142 /usr.bin | |
parent | 9c8c3de23bc858906d94d98cc38c27e3178f11dd (diff) |
remove small dead code; arnaud.lacombe.1@ulaval.ca via Coverity scan
Diffstat (limited to 'usr.bin')
-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 |