diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-04-25 20:32:49 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-25 20:32:49 +0000 |
commit | 05f92404cd8e0fa3204182350d19c74451f9c4b7 (patch) | |
tree | 452dbd7d01bdcf1a1ad1e15ec2776d07c3f5fb8b /hw/ppc405_boards.c | |
parent | b2c58871c9fd3a6fe7f670b97af7708809477721 (diff) |
ppc: remove dead assignments, spotted by clang analyzer
Value stored is never read.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ppc405_boards.c')
-rw-r--r-- | hw/ppc405_boards.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/ppc405_boards.c b/hw/ppc405_boards.c index f40d618963..7c7075e0da 100644 --- a/hw/ppc405_boards.c +++ b/hw/ppc405_boards.c @@ -187,7 +187,6 @@ static void ref405ep_init (ram_addr_t ram_size, target_ulong kernel_base, kernel_size, initrd_base, initrd_size; int linux_boot; int fl_idx, fl_sectors, len; - int ppc_boot_device = boot_device[0]; DriveInfo *dinfo; /* XXX: fix this */ @@ -326,7 +325,6 @@ static void ref405ep_init (ram_addr_t ram_size, } env->gpr[4] = initrd_base; env->gpr[5] = initrd_size; - ppc_boot_device = 'm'; if (kernel_cmdline != NULL) { len = strlen(kernel_cmdline); bdloc -= ((len + 255) & ~255); @@ -508,7 +506,6 @@ static void taihu_405ep_init(ram_addr_t ram_size, target_ulong kernel_base, kernel_size, initrd_base, initrd_size; int linux_boot; int fl_idx, fl_sectors; - int ppc_boot_device = boot_device[0]; DriveInfo *dinfo; /* RAM is soldered to the board so the size cannot be changed */ @@ -625,7 +622,6 @@ static void taihu_405ep_init(ram_addr_t ram_size, initrd_base = 0; initrd_size = 0; } - ppc_boot_device = 'm'; } else { kernel_base = 0; kernel_size = 0; |