diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2010-05-27 16:20:30 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-06-04 11:43:39 +0200 |
commit | 3e82990b52d5afeb4957dd9b87be83d752e369b9 (patch) | |
tree | ba5c89885d52e6c2e240e21393c92f822d677c04 /roms | |
parent | 358c360feb346dff8f911e2d1dbcdd6319393f1d (diff) |
Cleanup: bdrv_open() no need to shift total_size just to shift back.
In bdrv_open() there is no need to shift total_size >> 9 just to
multiply it by 512 again just a few lines later, since this is the
only place the variable is used.
Mask with BDRV_SECTOR_MASK to protect against case where we are
passed a corrupted image.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'roms')
0 files changed, 0 insertions, 0 deletions