OSDN Git Service

block: m25p80: sync_page(): Deindent function body.
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Thu, 19 Jun 2014 01:36:03 +0000 (18:36 -0700)
committerStefan Hajnoczi <stefanha@redhat.com>
Sat, 21 Jun 2014 08:40:14 +0000 (16:40 +0800)
commitfc1084aad72297cb6dbccf4c78473b5390ff6c87
tree430bf03ae1bcfbdf58fad4522d42be027165974c
parent427e1750a0b98a72cad424327604f51e993dcc5f
block: m25p80: sync_page(): Deindent function body.

sync_page() was conditionalizing it's whole fn body on the bdrv being
non-null. Just return for the function immediately on NULL brdv and
get rid of the big if.

Makes implementation consistent with flash_zynq_area().

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/m25p80.c