modpost: add missing else to the "of" check

Without this 'else' statement, an "usb" name goes into two handlers:
the first/previous 'if' statement _AND_ the for-loop over 'devtable',
but the latter is useless as it has no 'usb' device_id entry anyway.

Tested with allmodconfig before/after patch; no changes to *.mod.c:

git checkout v6.6-rc3
make -j$(nproc) allmodconfig
make -j$(nproc) olddefconfig

make -j$(nproc)
find . -name '*.mod.c' | cpio -pd /tmp/before

# apply patch

make -j$(nproc)
find . -name '*.mod.c' | cpio -pd /tmp/after

diff -r /tmp/before/ /tmp/after/
# no difference

Fixes: acbef7b76629 ("modpost: fix module autoloading for OF devices with generic compatible property")
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by Mauricio Faria de Oliveira and committed by Masahiro Yamada cbc3d00c 28d49e17

Changed files
+1 -1
scripts
+1 -1
scripts/mod/file2alias.c
··· 1604 1604 /* First handle the "special" cases */ 1605 1605 if (sym_is(name, namelen, "usb")) 1606 1606 do_usb_table(symval, sym->st_size, mod); 1607 - if (sym_is(name, namelen, "of")) 1607 + else if (sym_is(name, namelen, "of")) 1608 1608 do_of_table(symval, sym->st_size, mod); 1609 1609 else if (sym_is(name, namelen, "pnp")) 1610 1610 do_pnp_device_entry(symval, sym->st_size, mod);