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:
parent
5af8ab60c6
commit
f9523c38a5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue