提交 5e2be4e0 编写于 作者: D Dan Carpenter 提交者: Rafael J. Wysocki

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 9208e311
......@@ -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 == '"')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册