aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 20:00:33 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 20:00:33 +0000
commit183aa45407e7b665d88842f8e288f6bbcac15e22 (patch)
treeba781db15ab04e5bacf9ed8bc8d6f17ef417a6ac /hw
parent37ca43a141a9cefd6733a6e9281690cd1a1dc419 (diff)
microblaze: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/petalogix_s3adsp1800_mmu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.c
index 9b7af557e7..93344b1151 100644
--- a/hw/petalogix_s3adsp1800_mmu.c
+++ b/hw/petalogix_s3adsp1800_mmu.c
@@ -164,7 +164,6 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size,
if (kernel_filename) {
uint64_t entry, low, high;
- int kcmdline_len;
uint32_t base32;
/* Boots a kernel elf binary. */
@@ -187,7 +186,7 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size,
}
boot_info.cmdline = ddr_base + kernel_size + 8192;
- if (kernel_cmdline && (kcmdline_len = strlen(kernel_cmdline))) {
+ if (kernel_cmdline && strlen(kernel_cmdline)) {
pstrcpy_targphys("cmdline", boot_info.cmdline, 256, kernel_cmdline);
}
/* Provide a device-tree. */