mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
modpost: remove unnecessary check in do_acpi_entry()
The 'id' pointer is never NULL since it has the same address as 'symval'. Also, checking (*id)[0] is simpler than calling strlen(). Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
0c3e091319
commit
b7bca42d10
@ -570,7 +570,7 @@ static int do_acpi_entry(const char *filename,
|
||||
DEF_FIELD(symval, acpi_device_id, cls);
|
||||
DEF_FIELD(symval, acpi_device_id, cls_msk);
|
||||
|
||||
if (id && strlen((const char *)*id))
|
||||
if ((*id)[0])
|
||||
sprintf(alias, "acpi*:%s:*", *id);
|
||||
else {
|
||||
int i, byte_shift, cnt = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user