summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-07-09 14:01:47 +0300
committerDan McDonald <danmcd@joyent.com>2018-09-10 09:01:34 -0400
commitc8bfc1e4e5bf8c7324dc1b265113ba9e401264db (patch)
tree84e2183f0d1c3d47dd8f16c84bb6014f2f063505 /usr/src
parent6649cbcc75f82cb221ebe2ee6f5afc2001249848 (diff)
downloadillumos-joyent-c8bfc1e4e5bf8c7324dc1b265113ba9e401264db.tar.gz
9785 loader.efi: variable 'attr' set but not used
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/boot/sys/boot/efi/libefi/env.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr/src/boot/sys/boot/efi/libefi/env.c b/usr/src/boot/sys/boot/efi/libefi/env.c
index c479422b2f..8f45a681fa 100644
--- a/usr/src/boot/sys/boot/efi/libefi/env.c
+++ b/usr/src/boot/sys/boot/efi/libefi/env.c
@@ -517,13 +517,11 @@ efi_print_global(const CHAR16 *varnamearg, uint8_t *data, UINTN datasz)
strncmp("Driver", var, 5) == 0 ||
strncmp("SysPrep", var, 7) == 0 ||
strncmp("OsRecovery", var, 10) == 0) {
- UINT32 attr;
UINT16 filepathlistlen;
CHAR16 *text;
int desclen;
EFI_DEVICE_PATH *dp;
- attr = *(uint32_t *)data;
data += sizeof(UINT32);
filepathlistlen = *(uint16_t *)data;
data += sizeof (UINT16);