treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / alpha / lib / srm_puts.c
blobdf7991f6fc694db01a434986cd9a7e7a4c68832f
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * arch/alpha/lib/srm_puts.c
4 */
6 #include <linux/string.h>
7 #include <asm/console.h>
9 long
10 srm_puts(const char *str, long len)
12 long remaining, written;
14 if (!callback_init_done)
15 return len;
17 for (remaining = len; remaining > 0; remaining -= written)
19 written = callback_puts(0, str, remaining);
20 written &= 0xffffffff;
21 str += written;
23 return len;