History

lib/digsig.c: use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

Duan Jiong committed 13 years ago

Commit ff6092a1 parent c0d92a51 file · +1 −1Browse files

Showing the changes to lib (1 of 1 file). Show all

Unified · Split

lib/digsig.c+1−1
@@ -209,7 +209,7 @@ int digsig_verify(struct key *keyring, const char *sig, int siglen, · 208 unmodified lines
209209 kref = keyring_search(make_key_ref(keyring, 1UL),
210210 &key_type_user, name);
211211 if (IS_ERR(kref))
212− key = ERR_PTR(PTR_ERR(kref));
212+ key = ERR_CAST(kref);
213213 else
214214 key = key_ref_to_ptr(kref);
215215 } else {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t