[U-Boot] [PATCH] efi_loader: add some missing breaks

Rob Clark robdclark at gmail.com
Thu Jul 27 15:28:33 UTC 2017


Signed-off-by: Rob Clark <robdclark at gmail.com>
---
Just noticed that there didn't seem to be quite enough break's.  Pretty
sure the intention wasn't to fall-thru

 lib/efi_loader/efi_device_path_to_text.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c
index 612e380617..4b2f43f0c8 100644
--- a/lib/efi_loader/efi_device_path_to_text.c
+++ b/lib/efi_loader/efi_device_path_to_text.c
@@ -52,6 +52,7 @@ static uint16_t *efi_convert_device_node_to_text(
 			break;
 			}
 		}
+		break;
 	case DEVICE_PATH_TYPE_MEDIA_DEVICE:
 		switch (device_node->sub_type) {
 		case DEVICE_PATH_SUB_TYPE_FILE_PATH:
@@ -63,6 +64,7 @@ static uint16_t *efi_convert_device_node_to_text(
 			memcpy(buffer, device_node->data, buffer_size);
 			break;
 		}
+		break;
 	}
 
 	/*
-- 
2.13.0



More information about the U-Boot mailing list