gpg: Return an error code from keygrip_from_pk.
* g10/keyid.c (keygrip_from_pk): Return an error code.
The error was show but the function did not return it. This change
should improve error messages for unknown algorithms.
- Signed-off-by: Werner Koch <wk@gnupg.org>