forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/x86/boot/video.c
....@@ -1,11 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* -*- linux-c -*- ------------------------------------------------------- *
23 *
34 * Copyright (C) 1991, 1992 Linus Torvalds
45 * Copyright 2007 rPath, Inc. - All Rights Reserved
56 * Copyright 2009 Intel Corporation; author H. Peter Anvin
6
- *
7
- * This file is part of the Linux kernel, and is made available under
8
- * the terms of the GNU General Public License version 2.
97 *
108 * ----------------------------------------------------------------------- */
119
....@@ -115,7 +113,7 @@
115113 } else if ((key >= '0' && key <= '9') ||
116114 (key >= 'A' && key <= 'Z') ||
117115 (key >= 'a' && key <= 'z')) {
118
- if (len < sizeof entry_buf) {
116
+ if (len < sizeof(entry_buf)) {
119117 entry_buf[len++] = key;
120118 putchar(key);
121119 }