coreboot-kgpe-d16/src
Paul Menzel 0187380875 arch/x86/gdt: Move variable assignment down
The Clang Static Analyzer warns about an unused assignment, when
building the image for the Lenovo X60.

```
src/arch/x86/gdt.c:39:6: warning: Value stored to 'num_gdt_bytes' \
        during its initialization is never read
        u16 num_gdt_bytes = (uintptr_t)&gdt_end - (uintptr_t)&gdt;
            ^~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

If `CONFIG_RELOCATABLE_RAMSTAGE` is selected, the function returns
before the assignment is used. So, move the assignment below the if
statement.

Change-Id: Ibcb8bce743d8cb3625647804816fb97f937dc429
Found-by: clang version 4.0.1-6 (tags/RELEASE_401/final), Debian Sid/unstable
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://review.coreboot.org/21957
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
Reviewed-by: Martin Roth <martinroth@google.com>
2017-11-03 15:20:15 +00:00
..
acpi src/acpi: Add guards on all header files 2017-08-01 23:04:27 +00:00
arch arch/x86/gdt: Move variable assignment down 2017-11-03 15:20:15 +00:00
commonlib LB_TAGS: change the value of CB_TAG_MAC_ADDRS to 0x33 2017-10-29 18:07:51 +00:00
console console: Ignore loglevel in nvram until ramstage 2017-09-25 13:35:29 +00:00
cpu AMD boards: Fix function name (soft_reset) in message 2017-10-31 09:57:06 +00:00
device security/vboot: Move vboot2 to security kconfig section 2017-10-22 02:14:46 +00:00
drivers spi/tpm: Make sure AP properly syncs up with Cr50 2017-11-01 18:02:43 +00:00
ec security/vboot: Move vboot2 to security kconfig section 2017-10-22 02:14:46 +00:00
include cpu/x86/mtrr: fix fls() and fms() inline assembly 2017-11-02 15:46:19 +00:00
lib lib/reg_script.c: Remove unused assignment 2017-11-03 07:51:56 +00:00
mainboard mainboard/google/kahlee: Prepare for variants 2017-11-03 15:19:05 +00:00
northbridge nb/intel/i3100: Don't select UDELAY_IO 2017-10-29 14:16:13 +00:00
security security/vboot: Move vboot2 to security kconfig section 2017-10-22 02:14:46 +00:00
soc soc/intel/common/block/lpc: Make integer literal unsigned long 2017-11-03 07:54:01 +00:00
southbridge AMD boards: Fix function name (soft_reset) in message 2017-10-31 09:57:06 +00:00
superio superio/acpi/pnp.asl: Fix PNP_READ_DMA/PNP_WRITE_DMA macros 2017-10-25 14:32:39 +00:00
vendorcode security/vboot: Move vboot2 to security kconfig section 2017-10-22 02:14:46 +00:00
Kconfig intel/common/smbus: increase spd read performance 2017-10-31 15:49:55 +00:00