Merge tag 'v4.15' into x86/pti, to be able to merge dependent changes
[linux-2.6-block.git] / scripts / mod / modpost.c
index 54deaa1066cf04a5df710695ed6fa36a7036f9ef..6510536c06df3d4d43cac41f061e49d6e883e91b 100644 (file)
@@ -1963,7 +1963,7 @@ static void read_symbols(char *modname)
        }
 
        license = get_modinfo(info.modinfo, info.modinfo_len, "license");
-       if (info.modinfo && !license && !is_vmlinux(modname))
+       if (!license && !is_vmlinux(modname))
                warn("modpost: missing MODULE_LICENSE() in %s\n"
                     "see include/linux/module.h for "
                     "more information\n", modname);