diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2017-03-10 22:05:50 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-04-20 15:22:41 -0300 |
commit | be9721f400f7e5395bb2a257c291557df8f3f833 (patch) | |
tree | 58d8c0b8e6577cb41ac97767f182190a653bd284 /include | |
parent | 606fd0e20600ad0756fdfd2165a105f576ce43a9 (diff) | |
download | qemu-be9721f400f7e5395bb2a257c291557df8f3f833.zip qemu-be9721f400f7e5395bb2a257c291557df8f3f833.tar.gz qemu-be9721f400f7e5395bb2a257c291557df8f3f833.tar.bz2 |
qdev: Constify local variable returned by blk_bs
Inside qdev_prop_set_drive() the value returned by blk_bs() is passed
only as pointer to const to bdrv_get_node_name() and pointed values is
not modified in other places so this can be made const for code
safeness.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Message-Id: <20170310200550.13313-3-krzk@kernel.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions