diff options
author | Guennadi Liakhovetski <[email protected]> | 2020-05-27 20:05:38 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2020-06-04 15:36:51 -0400 |
commit | 002ef18eff43708be1d914cb11dbdd84fb149474 (patch) | |
tree | 6154a3dc77953f734c18baf5a2fa41cbbc492d9d | |
parent | d90ca42012db2863a9a30b564a2ace6016594bda (diff) |
vhost: (cosmetic) remove a superfluous variable initialisation
Even the compiler is able to figure out that in this case the
initialisation is superfluous.
Signed-off-by: Guennadi Liakhovetski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
-rw-r--r-- | drivers/vhost/vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index a40d16bdebb5..534d1267b761 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -920,7 +920,7 @@ static inline void __user *__vhost_get_user(struct vhost_virtqueue *vq, #define vhost_put_user(vq, x, ptr) \ ({ \ - int ret = -EFAULT; \ + int ret; \ if (!vq->iotlb) { \ ret = __put_user(x, ptr); \ } else { \ |