projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: doc - document correct return value for request allocation
[cascardo/linux.git]
/
Documentation
/
DocBook
/
crypto-API.tmpl
diff --git
a/Documentation/DocBook/crypto-API.tmpl
b/Documentation/DocBook/crypto-API.tmpl
index
348619f
..
d55dc5a
100644
(file)
--- a/
Documentation/DocBook/crypto-API.tmpl
+++ b/
Documentation/DocBook/crypto-API.tmpl
@@
-1936,9
+1936,9
@@
static int test_skcipher(void)
}
req = skcipher_request_alloc(skcipher, GFP_KERNEL);
- if (
IS_ERR(req)
) {
- pr_info("could not allocate
request queue
\n");
- ret =
PTR_ERR(req)
;
+ if (
!req
) {
+ pr_info("could not allocate
skcipher request
\n");
+ ret =
-ENOMEM
;
goto out;
}