x86: translate.c: remove dead assignment
authorAmit Shah <amit.shah@redhat.com>
Wed, 13 Jan 2010 10:54:44 +0000 (16:24 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 13 Jan 2010 23:14:15 +0000 (17:14 -0600)
clang-analyzer points out a redundant assignment.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/translate.c

index 511a4eae9bf36d186beb5353d5aa7f6037b1ab99..807811205493529ce849bf1acc44f73df9c6a7c9 100644 (file)
@@ -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