m25p80: fix test on blk_pread() return value
commit9e19036e5a3c5abfe57984ca98ab064acfca83a3
authorCédric Le Goater <clg@kaod.org>
Tue, 31 May 2016 11:36:05 +0000 (31 13:36 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 16 Jun 2016 13:19:55 +0000 (16 15:19 +0200)
treedef9a31194cc57241a4985955b347745daa95b3b
parent479b5998d4149bef94a5900291b51804eff39a3d
m25p80: fix test on blk_pread() return value

commit 243e6f69c129 ("m25p80: Switch to byte-based block access")
replaced blk_read() calls with blk_pread() but return values are
different.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/m25p80.c