hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/boot/video-vesa.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
....@@ -62,7 +60,7 @@
6260 if (mode & ~0x1ff)
6361 continue;
6462
65
- memset(&vminfo, 0, sizeof vminfo); /* Just in case... */
63
+ memset(&vminfo, 0, sizeof(vminfo)); /* Just in case... */
6664
6765 ireg.ax = 0x4f01;
6866 ireg.cx = mode;
....@@ -109,7 +107,7 @@
109107 int is_graphic;
110108 u16 vesa_mode = mode->mode - VIDEO_FIRST_VESA;
111109
112
- memset(&vminfo, 0, sizeof vminfo); /* Just in case... */
110
+ memset(&vminfo, 0, sizeof(vminfo)); /* Just in case... */
113111
114112 initregs(&ireg);
115113 ireg.ax = 0x4f01;
....@@ -241,7 +239,7 @@
241239 struct biosregs ireg, oreg;
242240
243241 /* Apparently used as a nonsense token... */
244
- memset(&boot_params.edid_info, 0x13, sizeof boot_params.edid_info);
242
+ memset(&boot_params.edid_info, 0x13, sizeof(boot_params.edid_info));
245243
246244 if (vginfo.version < 0x0200)
247245 return; /* EDID requires VBE 2.0+ */