unet-cli: strip initial newline in usage message
[project/unetd.git] / bpf.c
diff --git a/bpf.c b/bpf.c
index d0ad6834b5895b1c4514e060bfd16e5d45bc759f..96da98313aba0e9d973a3d9a6526908c8ff11a78 100644 (file)
--- a/bpf.c
+++ b/bpf.c
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0+
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2022 Felix Fietkau <nbd@nbd.name>
  */
@@ -97,9 +97,8 @@ int unetd_attach_mssfix(int ifindex, int mtu)
        }
 
        prog_fd = bpf_program__fd(prog);
-       if (unetd_attach_bpf_prog(ifindex, prog_fd, true) ||
-           unetd_attach_bpf_prog(ifindex, prog_fd, false))
-               goto out;
+       unetd_attach_bpf_prog(ifindex, prog_fd, true);
+       unetd_attach_bpf_prog(ifindex, prog_fd, false);
 
        ret = 0;