Patchwork [3/6] x86: translate.c: remove dead assignment

login
register
mail settings
Submitter Amit Shah
Date Jan. 13, 2010, 10:54 a.m.
Message ID <1263380087-31821-4-git-send-email-amit.shah@redhat.com>
Download mbox | patch
Permalink /patch/42804/
State New
Headers show

Comments

Amit Shah - Jan. 13, 2010, 10:54 a.m.
clang-analyzer points out a redundant assignment.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 target-i386/translate.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/target-i386/translate.c b/target-i386/translate.c
index 511a4ea..8078112 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -2207,8 +2207,6 @@  static void gen_add_A0_ds_seg(DisasContext *s)
     if (s->override >= 0) {
         override = s->override;
         must_add_seg = 1;
-    } else {
-        override = R_DS;
     }
     if (must_add_seg) {
 #ifdef TARGET_X86_64