]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
xfrm: fix boolean assignment in xfrm_get_type_offload
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 22 Jan 2018 22:34:09 +0000 (16:34 -0600)
committerSteffen 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

index 2d486492acdb26e4522628c7830eee56d6f54849..a3785f538018dc8a777f7768752d8f5f7cedb1e1 100644 (file)
@@ -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;
        }