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
1 changed files with 1 additions and 1 deletions
|
@ -1335,7 +1335,7 @@ static int __init acpi_os_name_setup(char *str)
|
||||||
if (!str || !*str)
|
if (!str || !*str)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for (; count-- && str && *str; str++) {
|
for (; count-- && *str; str++) {
|
||||||
if (isalnum(*str) || *str == ' ' || *str == ':')
|
if (isalnum(*str) || *str == ' ' || *str == ':')
|
||||||
*p++ = *str;
|
*p++ = *str;
|
||||||
else if (*str == '\'' || *str == '"')
|
else if (*str == '\'' || *str == '"')
|
||||||
|
|
Loading…
Add table
Reference in a new issue