ide/atapi: Replace bdrv_get_geometry calls by s->nb_sectors
authorKevin Wolf <kwolf@redhat.com>
Tue, 19 Apr 2011 11:13:44 +0000 (13:13 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 27 Apr 2011 14:20:59 +0000 (16:20 +0200)
commit95dddca4994757c6739c1e83b025f9426c9da6c8
treeae904b9d7de09ad7018d2890b842a5bfbc9fa656
parent5a343c2c59db1fa7df5f285214f95f9be87937b2
ide/atapi: Replace bdrv_get_geometry calls by s->nb_sectors

The disk size can only change when the medium is changed, and the change
callback takes care of updating s->nb_sectors in this case.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/atapi.c