summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-09-13 13:43:50 +0200
committerMichael S. Tsirkin <mst@redhat.com>2016-10-31 00:21:47 +0200
commit2ff98449ee883d6e7484f5937370df42d6789e07 (patch)
treea87e0851e196c69d332787b9d96603692adad011 /drivers/block
parent668866b6e8dffa5583d8694f1d8ddd89a8bee745 (diff)
downloadblackbird-op-linux-2ff98449ee883d6e7484f5937370df42d6789e07.tar.gz
blackbird-op-linux-2ff98449ee883d6e7484f5937370df42d6789e07.zip
virtio_blk: Delete an unnecessary initialisation in init_vq()
The local variable "err" will be set to an appropriate value by a following statement. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/virtio_blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index b2bc62b9fbe6..5545a679abd8 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -376,7 +376,7 @@ static void virtblk_config_changed(struct virtio_device *vdev)
static int init_vq(struct virtio_blk *vblk)
{
- int err = 0;
+ int err;
int i;
vq_callback_t **callbacks;
const char **names;
OpenPOWER on IntegriCloud