forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/x86/boot/edd.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
....@@ -76,7 +74,7 @@
7674 {
7775 struct biosregs ireg, oreg;
7876
79
- memset(ei, 0, sizeof *ei);
77
+ memset(ei, 0, sizeof(*ei));
8078
8179 /* Check Extensions Present */
8280
....@@ -133,7 +131,7 @@
133131 struct edd_info ei, *edp;
134132 u32 *mbrptr;
135133
136
- if (cmdline_find_option("edd", eddarg, sizeof eddarg) > 0) {
134
+ if (cmdline_find_option("edd", eddarg, sizeof(eddarg)) > 0) {
137135 if (!strcmp(eddarg, "skipmbr") || !strcmp(eddarg, "skip")) {
138136 do_edd = 1;
139137 do_mbr = 0;
....@@ -166,7 +164,7 @@
166164 */
167165 if (!get_edd_info(devno, &ei)
168166 && boot_params.eddbuf_entries < EDDMAXNR) {
169
- memcpy(edp, &ei, sizeof ei);
167
+ memcpy(edp, &ei, sizeof(ei));
170168 edp++;
171169 boot_params.eddbuf_entries++;
172170 }