block: simplify bdrv_find_base() and bdrv_find_overlay()
commit4caf0fcd45db46920a6264b1621ae6adc772ef19
authorJeff Cody <jcody@redhat.com>
Wed, 25 Jun 2014 19:35:26 +0000 (25 15:35 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Jul 2014 08:15:34 +0000 (1 10:15 +0200)
tree9deef9048dfbd6a9955fcd4abec4072444b536d6
parent7676e2c597000eff3a7233b40cca768b358f9bc9
block: simplify bdrv_find_base() and bdrv_find_overlay()

This simplifies the function bdrv_find_overlay().  With this change,
bdrv_find_base() is just a subset of usage of bdrv_find_overlay(),
so this also takes advantage of that.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c