ACPI / osl: remove an unneeded NULL check
"str" is never NULL here so I have removed the check. There are static checkers which complain about superfluous NULL checks because it may indicate confusion or a bug. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
9208e3110b
commit
5e2be4e0ed
|
@ -1335,7 +1335,7 @@ static int __init acpi_os_name_setup(char *str)
|
|||
if (!str || !*str)
|
||||
return 0;
|
||||
|
||||
for (; count-- && str && *str; str++) {
|
||||
for (; count-- && *str; str++) {
|
||||
if (isalnum(*str) || *str == ' ' || *str == ':')
|
||||
*p++ = *str;
|
||||
else if (*str == '\'' || *str == '"')
|
||||
|
|
Loading…
Reference in a new issue