Drop redundant check on hash algo name

The array is already size-validated, me thinks we can safely
assume the array to be populated with non-NULL values.
This commit is contained in:
Panu Matilainen 2017-10-10 15:20:16 +03:00
parent 5af8ab60c6
commit f9523c38a5
1 changed files with 0 additions and 4 deletions

View File

@ -87,10 +87,6 @@ rpmRC rpmSignFiles(Header sigh, Header h, const char *key, char *keypass)
diglen = rpmDigestLength(algo);
algoname = hash_algo_name[algo];
if (!algoname) {
rpmlog(RPMLOG_ERR, _("hash_algo_name failed\n"));
goto exit;
}
headerDel(sigh, RPMTAG_FILESIGNATURELENGTH);
headerDel(sigh, RPMTAG_FILESIGNATURES);