| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* -*- linux-c -*- ------------------------------------------------------- * |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 1991, 1992 Linus Torvalds |
|---|
| 4 | 5 | * Copyright 2007 rPath, Inc. - All Rights Reserved |
|---|
| 5 | 6 | * 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. |
|---|
| 9 | 7 | * |
|---|
| 10 | 8 | * ----------------------------------------------------------------------- */ |
|---|
| 11 | 9 | |
|---|
| .. | .. |
|---|
| 62 | 60 | if (mode & ~0x1ff) |
|---|
| 63 | 61 | continue; |
|---|
| 64 | 62 | |
|---|
| 65 | | - memset(&vminfo, 0, sizeof vminfo); /* Just in case... */ |
|---|
| 63 | + memset(&vminfo, 0, sizeof(vminfo)); /* Just in case... */ |
|---|
| 66 | 64 | |
|---|
| 67 | 65 | ireg.ax = 0x4f01; |
|---|
| 68 | 66 | ireg.cx = mode; |
|---|
| .. | .. |
|---|
| 109 | 107 | int is_graphic; |
|---|
| 110 | 108 | u16 vesa_mode = mode->mode - VIDEO_FIRST_VESA; |
|---|
| 111 | 109 | |
|---|
| 112 | | - memset(&vminfo, 0, sizeof vminfo); /* Just in case... */ |
|---|
| 110 | + memset(&vminfo, 0, sizeof(vminfo)); /* Just in case... */ |
|---|
| 113 | 111 | |
|---|
| 114 | 112 | initregs(&ireg); |
|---|
| 115 | 113 | ireg.ax = 0x4f01; |
|---|
| .. | .. |
|---|
| 241 | 239 | struct biosregs ireg, oreg; |
|---|
| 242 | 240 | |
|---|
| 243 | 241 | /* 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)); |
|---|
| 245 | 243 | |
|---|
| 246 | 244 | if (vginfo.version < 0x0200) |
|---|
| 247 | 245 | return; /* EDID requires VBE 2.0+ */ |
|---|