.. | .. |
---|
| 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 | |
---|
.. | .. |
---|
76 | 74 | { |
---|
77 | 75 | struct biosregs ireg, oreg; |
---|
78 | 76 | |
---|
79 | | - memset(ei, 0, sizeof *ei); |
---|
| 77 | + memset(ei, 0, sizeof(*ei)); |
---|
80 | 78 | |
---|
81 | 79 | /* Check Extensions Present */ |
---|
82 | 80 | |
---|
.. | .. |
---|
133 | 131 | struct edd_info ei, *edp; |
---|
134 | 132 | u32 *mbrptr; |
---|
135 | 133 | |
---|
136 | | - if (cmdline_find_option("edd", eddarg, sizeof eddarg) > 0) { |
---|
| 134 | + if (cmdline_find_option("edd", eddarg, sizeof(eddarg)) > 0) { |
---|
137 | 135 | if (!strcmp(eddarg, "skipmbr") || !strcmp(eddarg, "skip")) { |
---|
138 | 136 | do_edd = 1; |
---|
139 | 137 | do_mbr = 0; |
---|
.. | .. |
---|
166 | 164 | */ |
---|
167 | 165 | if (!get_edd_info(devno, &ei) |
---|
168 | 166 | && boot_params.eddbuf_entries < EDDMAXNR) { |
---|
169 | | - memcpy(edp, &ei, sizeof ei); |
---|
| 167 | + memcpy(edp, &ei, sizeof(ei)); |
---|
170 | 168 | edp++; |
---|
171 | 169 | boot_params.eddbuf_entries++; |
---|
172 | 170 | } |
---|