Elimate the following coccinelle check warning:
./arch/riscv/kvm/vcpu_sbi.c:169:2-3: Unneeded semicolon
./arch/riscv/kvm/vcpu_exit.c:397:2-3: Unneeded semicolon
./arch/riscv/kvm/vcpu_exit.c:687:2-3: Unneeded semicolon
./arch/riscv/kvm/vcpu_exit.c:645:2-3: Unneeded semicolon
./arch/riscv/kvm/vcpu.c:247:2-3: Unneeded semicolon
./arch/riscv/kvm/vcpu.c:284:2-3: Unneeded semicolon
./arch/riscv/kvm/vcpu_timer.c:123:2-3: Unneeded semicolon
./arch/riscv/kvm/vcpu_timer.c:170:2-3: Unneeded semicolon
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ran jianping <ran.jianping@zte.com.cn>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
break;
default:
return -EINVAL;
- };
+ }
if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id)))
return -EFAULT;
break;
default:
return -EINVAL;
- };
+ }
return 0;
}
break;
default:
return -EOPNOTSUPP;
- };
+ }
/* Update MMIO details in kvm_run struct */
run->mmio.is_write = true;
break;
default:
return -EOPNOTSUPP;
- };
+ }
done:
/* Move to next instruction */
break;
default:
break;
- };
+ }
/* Print details in-case of error */
if (ret < 0) {
/* Return error for unsupported SBI calls */
cp->a0 = SBI_ERR_NOT_SUPPORTED;
break;
- };
+ }
if (next_sepc)
cp->sepc += 4;
break;
default:
return -EINVAL;
- };
+ }
if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id)))
return -EFAULT;
default:
ret = -EINVAL;
break;
- };
+ }
return ret;
}