Remove empty statements
PATCH 1/1 Remove empty statements
Thanks to Laszlo Ersek for spotting the double semicolon in target/i386/kvm.c
I have trivially grepped the tree for ';;' in C files.
--- hw/misc/imx6_ccm.c | 2 +- hw/s390x/virtio-ccw.c | 2 +- linux-user/signal.c | 2 +- migration/block.c | 2 +- target/i386/cpu.c | 2 +- target/i386/kvm.c | 2 +- target/sh4/translate.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
hw/misc/imx6_ccm.c +1 -1
@@ -335,7 +335,7 @@ static uint64_t imx6_ccm_get_ipg_clk(IMX6CCMState *dev)uint64_t freq =0 ; freq =imx6_ccm_get_ahb_clk (dev) - / (1 +EXTRACT (dev->ccm[CCM_CBCDR ],IPG_PODF ));; + / (1 +EXTRACT (dev->ccm[CCM_CBCDR ],IPG_PODF ));DPRINTF ("freq = %d\n" , (uint32_t )freq);
hw/s390x/virtio-ccw.c +1 -1
@@ -486,7 +486,7 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) }else {address_space_stb (&address_space_memory, ccw.cda, vdev->status,MEMTXATTRS_UNSPECIFIED ,NULL ); - sch->curr_status.scsw.count = ccw.count -sizeof (vdev->status);; + sch->curr_status.scsw.count = ccw.count -sizeof (vdev->status); ret =0 ; }break ;
linux-user/signal.c +1 -1
@@ -6487,7 +6487,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka, haddr = dest; } env->iaoq_f = haddr; - env->iaoq_b = haddr +4 ;; + env->iaoq_b = haddr +4 ;return ; give_sigsegv:
migration/block.c +1 -1
@@ -896,7 +896,7 @@ static int block_load(QEMUFile *f, void *opaque, int version_id)int len, flags;char device_name[256 ];int64_t addr; -BlockBackend *blk, *blk_prev =NULL ;; +BlockBackend *blk, *blk_prev =NULL ;Error *local_err =NULL ;uint8_t *buf;int64_t total_sectors =0 ;
target/i386/cpu.c +1 -1
@@ -2218,7 +2218,7 @@ static void x86_cpu_class_check_missing_features(X86CPUClass *xcc,if (xcc->kvm_required && !kvm_enabled ()) {strList *new =g_new0 (strList,1 ); - new->value =g_strdup ("kvm" );; + new->value =g_strdup ("kvm" ); *missing_feats = new;return ; }
target/i386/kvm.c +1 -1
@@ -1122,7 +1122,7 @@ static int kvm_get_supported_msrs(KVMState *s)break ;case MSR_IA32_XSS : has_msr_xss = true; -break ;; +break ;case HV_X64_MSR_CRASH_CTL : has_msr_hv_crash = true;break ;
target/sh4/translate.c +1 -1
@@ -679,7 +679,7 @@ static void _decode_opc(DisasContext * ctx)return ;case 0x6008 :/* swap.b Rm,Rn */ { -TCGv low =tcg_temp_new ();; +TCGv low =tcg_temp_new ();tcg_gen_ext16u_i32 (low,REG (B7_4 ));tcg_gen_bswap16_i32 (low, low);tcg_gen_deposit_i32 (REG (B11_8 ),REG (B7_4 ), low,0 ,16 );
Signature · 1 line
2.13.5
Quoted 6 lines · Ladi Prosek
Thanks to Laszlo Ersek for spotting the double semicolon in
target/i386/kvm.cI have trivially grepped the tree for ';;' in C files.
Suggested-by Laszlo Ersek <[email protected]>Signed-off-by Ladi Prosek <[email protected]>
Quoted 9 lines
--- hw/misc/imx6_ccm.c | 2 +- hw/s390x/virtio-ccw.c | 2 +- linux-user/signal.c | 2 +- migration/block.c | 2 +- target/i386/cpu.c | 2 +- target/i386/kvm.c | 2 +- target/sh4/translate.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
I've run "get_maintainer.pl" on the above files, and added some CCs.
Thanks!
Laszlo
Quoted 93 lines
hw/misc/imx6_ccm.c +1
-1@@ -335,7 +335,7 @@ static uint64_t imx6_ccm_get_ipg_clk(IMX6CCMState *dev)uint64_t freq =0 ; freq =imx6_ccm_get_ahb_clk (dev) - / (1 +EXTRACT (dev->ccm[CCM_CBCDR ],IPG_PODF ));; + / (1 +EXTRACT (dev->ccm[CCM_CBCDR ],IPG_PODF ));DPRINTF ("freq = %d\n" , (uint32_t )freq);hw/s390x/virtio-ccw.c +1
-1@@ -486,7 +486,7 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) }else {address_space_stb (&address_space_memory, ccw.cda, vdev->status,MEMTXATTRS_UNSPECIFIED ,NULL ); - sch->curr_status.scsw.count = ccw.count -sizeof (vdev->status);; + sch->curr_status.scsw.count = ccw.count -sizeof (vdev->status); ret =0 ; }break ;linux-user/signal.c +1
-1@@ -6487,7 +6487,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka, haddr = dest; } env->iaoq_f = haddr; - env->iaoq_b = haddr +4 ;; + env->iaoq_b = haddr +4 ;return ; give_sigsegv:migration/block.c +1
-1@@ -896,7 +896,7 @@ static int block_load(QEMUFile *f, void *opaque, int version_id)int len, flags;char device_name[256 ];int64_t addr; -BlockBackend *blk, *blk_prev =NULL ;; +BlockBackend *blk, *blk_prev =NULL ;Error *local_err =NULL ;uint8_t *buf;int64_t total_sectors =0 ;target/i386/cpu.c +1
-1@@ -2218,7 +2218,7 @@ static void x86_cpu_class_check_missing_features(X86CPUClass *xcc,if (xcc->kvm_required && !kvm_enabled ()) {strList *new =g_new0 (strList,1 ); - new->value =g_strdup ("kvm" );; + new->value =g_strdup ("kvm" ); *missing_feats = new;return ; }target/i386/kvm.c +1
-1@@ -1122,7 +1122,7 @@ static int kvm_get_supported_msrs(KVMState *s)break ;case MSR_IA32_XSS : has_msr_xss = true; -break ;; +break ;case HV_X64_MSR_CRASH_CTL : has_msr_hv_crash = true;break ;target/sh4/translate.c +1
-1@@ -679,7 +679,7 @@ static void _decode_opc(DisasContext * ctx)return ;case 0x6008 :/* swap.b Rm,Rn */ { -TCGv low =tcg_temp_new ();; +TCGv low =tcg_temp_new ();tcg_gen_ext16u_i32 (low,REG (B7_4 ));tcg_gen_bswap16_i32 (low, low);tcg_gen_deposit_i32 (REG (B11_8 ),REG (B7_4 ), low,0 ,16 );
Le 17/10/2017 à 16:40, Ladi Prosek a écrit :
Quoted 6 lines
Thanks to Laszlo Ersek for spotting the double semicolon in
target/i386/kvm.cI have trivially grepped the tree for ';;' in C files.
Suggested-by Laszlo Ersek <[email protected]>Signed-off-by Ladi Prosek <[email protected]>
Quoted 9 lines
--- hw/misc/imx6_ccm.c | 2 +- hw/s390x/virtio-ccw.c | 2 +- linux-user/signal.c | 2 +- migration/block.c | 2 +- target/i386/cpu.c | 2 +- target/i386/kvm.c | 2 +- target/sh4/translate.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
Cornelia Huck
Reviewed-byQuoted 17 lines · On Tue, 17 Oct 2017 16:50:41 +0200 Laszlo Ersek <[email protected]> wrote:
Quoted 6 lines · Ladi Prosek
Thanks to Laszlo Ersek for spotting the double semicolon in
target/i386/kvm.cI have trivially grepped the tree for ';;' in C files.
Suggested-by Laszlo Ersek <[email protected]>Signed-off-by Ladi Prosek <[email protected]>Quoted 9 lines
--- hw/misc/imx6_ccm.c | 2 +- hw/s390x/virtio-ccw.c | 2 +- linux-user/signal.c | 2 +- migration/block.c | 2 +- target/i386/cpu.c | 2 +- target/i386/kvm.c | 2 +- target/sh4/translate.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
Quoted 3 lines
I've run "get_maintainer.pl" on the above files, and added some CCs.
Reviewed-by Laszlo Ersek <[email protected]>
Trivial ;) enough, but