projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
668866b
)
virtio_blk: Delete an unnecessary initialisation in init_vq()
author
Markus Elfring
<elfring@users.sourceforge.net>
Tue, 13 Sep 2016 11:43:50 +0000
(13:43 +0200)
committer
Michael S. Tsirkin
<mst@redhat.com>
Sun, 30 Oct 2016 22:21:47 +0000
(
00:21
+0200)
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>
drivers/block/virtio_blk.c
patch
|
blob
|
history
diff --git
a/drivers/block/virtio_blk.c
b/drivers/block/virtio_blk.c
index
b2bc62b
..
5545a67
100644
(file)
--- 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;