Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e2be4e0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Rafael J. Wysocki
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 9208e311
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 == '"')