]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/atm/lec.c
Merge tag 'tegra-for-5.5-soc-fixes' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / net / atm / lec.c
index ad4f829193f053c8a0c0846f1e9f619617dcd18e..5a77c235a212f3d08b2e6e9578880819b8fdcbee 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * lec.c: Lan Emulation driver
  *
@@ -726,9 +727,7 @@ static int lecd_attach(struct atm_vcc *vcc, int arg)
        struct lec_priv *priv;
 
        if (arg < 0)
-               i = 0;
-       else
-               i = arg;
+               arg = 0;
        if (arg >= MAX_LEC_ITF)
                return -EINVAL;
        i = array_index_nospec(arg, MAX_LEC_ITF);