aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-01-23 14:30:03 +0000
committerWerner Koch <[email protected]>2015-01-23 14:30:03 +0000
commit297b1a0d15873d8765841c54003d244b49090789 (patch)
tree3ff85093edc3c4047320e7d7be0fc603336cfa9f
parentdoc: Fix some typos and add missing options. (diff)
downloadgnupg-297b1a0d15873d8765841c54003d244b49090789.tar.gz
gnupg-297b1a0d15873d8765841c54003d244b49090789.zip
gpg,sm: Remove unnecessary duplicated checks
-- Reported-by: Günther Noack <[email protected]>
-rw-r--r--g10/keygen.c2
-rw-r--r--sm/verify.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index aaccae4fd..614326922 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -2659,7 +2659,7 @@ ask_user_id (int mode, int full, KBNODE keyblock)
xfree(answer);
}
xfree(answer);
- if( !amail && !acomment && !amail )
+ if (!amail && !acomment)
break;
xfree(uid); uid = NULL;
}
diff --git a/sm/verify.c b/sm/verify.c
index 2e911376e..73e0ab4b7 100644
--- a/sm/verify.c
+++ b/sm/verify.c
@@ -467,7 +467,7 @@ gpgsm_verify (ctrl_t ctrl, int in_fd, int data_fd, estream_t out_fp)
s = gcry_md_read (data_md, algo);
if ( !s || !msgdigestlen
|| gcry_md_get_algo_dlen (algo) != msgdigestlen
- || !s || memcmp (s, msgdigest, msgdigestlen) )
+ || memcmp (s, msgdigest, msgdigestlen) )
{
char *fpr;