projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5efec5c
)
xfrm: fix boolean assignment in xfrm_get_type_offload
author
Gustavo A. R. Silva
<garsilva@embeddedor.com>
Mon, 22 Jan 2018 22:34:09 +0000
(16:34 -0600)
committer
Steffen Klassert
<steffen.klassert@secunet.com>
Tue, 23 Jan 2018 09:56:36 +0000
(10:56 +0100)
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle.
Fixes: ffdb5211da1c ("xfrm: Auto-load xfrm offload modules")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_state.c
b/net/xfrm/xfrm_state.c
index 2d486492acdb26e4522628c7830eee56d6f54849..a3785f538018dc8a777f7768752d8f5f7cedb1e1 100644
(file)
--- a/
net/xfrm/xfrm_state.c
+++ b/
net/xfrm/xfrm_state.c
@@
-317,7
+317,7
@@
retry:
if (!type && try_load) {
request_module("xfrm-offload-%d-%d", family, proto);
- try_load =
0
;
+ try_load =
false
;
goto retry;
}