]> git.proxmox.com Git - qemu.git/commit
target-i386: Avoid goto in hw_breakpoint_insert()
authorliguang <lig.fnst@cn.fujitsu.com>
Tue, 15 Jan 2013 07:24:02 +0000 (08:24 +0100)
committerAndreas Färber <afaerber@suse.de>
Tue, 15 Jan 2013 08:23:25 +0000 (09:23 +0100)
commit1cc21a180b9ea9204e99ad5c58604cb458e572a9
tree397a4db4eb4905de4d7379c71b29b34f6190a3f1
parent5902564ac983d67d7d898356971698b50b8f0b91
target-i386: Avoid goto in hw_breakpoint_insert()

  "Go To Statement Considered Harmful" -- E. Dijkstra

To avoid an unnecessary goto within the switch statement, move
watchpoint insertion out of the switch statement. Improves readability.

While at it, fix Coding Style issues (missing braces, indentation).

Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/helper.c