summaryrefslogtreecommitdiffstats
path: root/target-mips
diff options
context:
space:
mode:
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>2011-11-01 16:04:32 +0800
committerKevin Wolf <kwolf@redhat.com>2011-12-05 14:51:34 +0100
commit23e9a39e7db60a8cbe4ac1291d4f4feab08930ce (patch)
treee92a5ddf84895d3f4246d16e6bc9ae1d40694af2 /target-mips
parentaef4acb6616ab7fb5c105660aa8a2cee4e250e75 (diff)
downloadhqemu-23e9a39e7db60a8cbe4ac1291d4f4feab08930ce.zip
hqemu-23e9a39e7db60a8cbe4ac1291d4f4feab08930ce.tar.gz
qed: adjust the way to get nb_sectors
This patch is only to refactor some lines of codes to get better and more robust codes. As you have seen, in qed_read_table_cb() it's nice to use qiov->size because that function doesn't obviously use a single struct iovec. In other two functions, if qiov use more than one struct iovec, the existing way will get wrong nb_sectors. To make the code more robust, it will be nicer to refactor the existing way as below. Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'target-mips')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud