linux/arch/xtensa/platforms
Max Filippov 13066c3037 xtensa: ISS: don't use string pointer before NULL check
Move strlen call inside the if block that checks string pointer for NULL.
While at it also fix the following coccicheck warning:

./arch/xtensa/platforms/iss/console.c:204:10-11: WARNING comparing
pointer to 0.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2021-08-11 11:36:10 -07:00
..
iss xtensa: ISS: don't use string pointer before NULL check 2021-08-11 11:36:10 -07:00
xt2000 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
xtfpga xtensa: drop empty platform_* functions from platforms 2020-01-31 12:17:28 -08:00