From: Heinrich Schuchardt Date: Sat, 1 Apr 2023 05:21:55 +0000 (+0200) Subject: efi_loader: remove duplicate assignment X-Git-Tag: baikal/mips/sdk5.8.2~5^2~5^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=295ced8c73f57440a9af606043407b005a836c9e;p=uboot.git efi_loader: remove duplicate assignment Assigning the value of a variable to itself should be avoided. Addresses-Coverity-ID: 451089 ("Evaluation order violation") Fixes: 8809169dacd6 ("efi_loader: fix device-path for USB devices") Signed-off-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index f35f673ce6..8a65dda883 100644 --- a/lib/efi_loader/efi_device_path.c +++ b/lib/efi_loader/efi_device_path.c @@ -740,7 +740,7 @@ __maybe_unused static void *dp_fill(void *buf, struct udevice *dev) #endif #if defined(CONFIG_USB) case UCLASS_MASS_STORAGE: { - struct blk_desc *desc = desc = dev_get_uclass_plat(dev); + struct blk_desc *desc = dev_get_uclass_plat(dev); struct efi_device_path_controller *dp = dp_fill(buf, dev->parent);