diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2006-04-03 01:33:10 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2006-04-03 01:33:10 +0000 |
commit | 123c29841f5a0c93ff74004730564077408bd32a (patch) | |
tree | 69e89cf7a885248be61de28c895b590b42ae349f /usr.bin/gzsig | |
parent | e18f913a64d2f5ecd13ffdfd8add7ca9bbb93e94 (diff) |
useless code simplification from adobriyan AT gmail.com
Diffstat (limited to 'usr.bin/gzsig')
-rw-r--r-- | usr.bin/gzsig/key.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/gzsig/key.c b/usr.bin/gzsig/key.c index 9f09e5eca9e..9ef897db5f4 100644 --- a/usr.bin/gzsig/key.c +++ b/usr.bin/gzsig/key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key.c,v 1.4 2006/04/01 19:57:32 otto Exp $ */ +/* $OpenBSD: key.c,v 1.5 2006/04/03 01:33:09 djm Exp $ */ /* * key.c @@ -101,12 +101,7 @@ load_file(struct iovec *iov, char *filename) struct key * key_new(void) { - struct key *k; - - if ((k = calloc(sizeof(*k), 1)) == NULL) - return (NULL); - - return (k); + return (calloc(1, sizeof(struct key))); } int |