From 123c29841f5a0c93ff74004730564077408bd32a Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 3 Apr 2006 01:33:10 +0000 Subject: useless code simplification from adobriyan AT gmail.com --- usr.bin/gzsig/key.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'usr.bin') 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 -- cgit v1.2.3