mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
efi_loader: remove unused function efi_dp_from_dev()
Function efi_dp_from_dev() is not used anywhere. Remove it. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -422,7 +422,7 @@ bool efi_dp_is_multi_instance(const struct efi_device_path *dp)
|
||||
/* size of device-path not including END node for device and all parents
|
||||
* up to the root device.
|
||||
*/
|
||||
static unsigned dp_size(struct udevice *dev)
|
||||
__maybe_unused static unsigned int dp_size(struct udevice *dev)
|
||||
{
|
||||
if (!dev || !dev->driver)
|
||||
return sizeof(ROOT);
|
||||
@@ -494,7 +494,7 @@ static unsigned dp_size(struct udevice *dev)
|
||||
* @dev device
|
||||
* @return pointer to the end of the device path
|
||||
*/
|
||||
static void *dp_fill(void *buf, struct udevice *dev)
|
||||
__maybe_unused static void *dp_fill(void *buf, struct udevice *dev)
|
||||
{
|
||||
if (!dev || !dev->driver)
|
||||
return buf;
|
||||
@@ -654,20 +654,6 @@ static void *dp_fill(void *buf, struct udevice *dev)
|
||||
return dp_fill(buf, dev->parent);
|
||||
}
|
||||
}
|
||||
|
||||
/* Construct a device-path from a device: */
|
||||
struct efi_device_path *efi_dp_from_dev(struct udevice *dev)
|
||||
{
|
||||
void *buf, *start;
|
||||
|
||||
start = buf = dp_alloc(dp_size(dev) + sizeof(END));
|
||||
if (!buf)
|
||||
return NULL;
|
||||
buf = dp_fill(buf, dev);
|
||||
*((struct efi_device_path *)buf) = END;
|
||||
|
||||
return start;
|
||||
}
|
||||
#endif
|
||||
|
||||
static unsigned dp_part_size(struct blk_desc *desc, int part)
|
||||
|
Reference in New Issue
Block a user