diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-09-02 13:12:44 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-09-02 13:12:44 -0700 |
commit | b5d6d2633c1b6b2b4599f658f8abe7eb1358cc77 (patch) | |
tree | a13e810a83a46c9658ccac0369c8b27363f17ad2 /arch/xtensa/platforms/iss | |
parent | aa829778b16f15266fefe2640f04931b16ce39c0 (diff) | |
parent | 7b7cec477fc3cd42ce565dfc3e53f144504fc95c (diff) | |
download | linux-stable-b5d6d2633c1b6b2b4599f658f8abe7eb1358cc77.tar.gz linux-stable-b5d6d2633c1b6b2b4599f658f8abe7eb1358cc77.tar.bz2 linux-stable-b5d6d2633c1b6b2b4599f658f8abe7eb1358cc77.zip |
Merge tag 'xtensa-20210902' of git://github.com/jcmvbkbc/linux-xtensa
Pull Xtensa updates from Max Filippov:
- fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
- add fairness to handling IRQs of the same priority
- fix pointer usage before NULL check in ISS console driver
- build system cleanups
* tag 'xtensa-20210902' of git://github.com/jcmvbkbc/linux-xtensa:
xtensa: move core-y in arch/xtensa/Makefile to arch/xtensa/Kbuild
xtensa: build platform directories unconditionally
xtensa: do not build variants directory
xtensa: remove unneeded exports
xtensa: ISS: don't use string pointer before NULL check
xtensa: add fairness to IRQ handling
xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
Diffstat (limited to 'arch/xtensa/platforms/iss')
-rw-r--r-- | arch/xtensa/platforms/iss/console.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c index 81f988914d9a..81d7c7e8f7e9 100644 --- a/arch/xtensa/platforms/iss/console.c +++ b/arch/xtensa/platforms/iss/console.c @@ -199,10 +199,10 @@ late_initcall(rs_init); static void iss_console_write(struct console *co, const char *s, unsigned count) { - int len = strlen(s); - - if (s != 0 && *s != 0) + if (s && *s != 0) { + int len = strlen(s); simc_write(1, s, count < len ? count : len); + } } static struct tty_driver* iss_console_device(struct console *c, int *index) |