mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_loader: efi_dp_match should have const arguments
efi_dp_match does not change its arguments. So they should be marked as const. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
cb90ee9757
commit
ff401d3f81
2 changed files with 4 additions and 2 deletions
|
@ -252,7 +252,8 @@ extern void *efi_bounce_buffer;
|
|||
|
||||
|
||||
struct efi_device_path *efi_dp_next(const struct efi_device_path *dp);
|
||||
int efi_dp_match(struct efi_device_path *a, struct efi_device_path *b);
|
||||
int efi_dp_match(const struct efi_device_path *a,
|
||||
const struct efi_device_path *b);
|
||||
struct efi_object *efi_dp_find_obj(struct efi_device_path *dp,
|
||||
struct efi_device_path **rem);
|
||||
unsigned efi_dp_size(const struct efi_device_path *dp);
|
||||
|
|
|
@ -68,7 +68,8 @@ struct efi_device_path *efi_dp_next(const struct efi_device_path *dp)
|
|||
* representing a device with one representing a file on the device, or
|
||||
* a device with a parent device.
|
||||
*/
|
||||
int efi_dp_match(struct efi_device_path *a, struct efi_device_path *b)
|
||||
int efi_dp_match(const struct efi_device_path *a,
|
||||
const struct efi_device_path *b)
|
||||
{
|
||||
while (1) {
|
||||
int ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue