From: Guennadi Liakhovetski Date: Wed, 27 May 2020 18:05:38 +0000 (+0200) Subject: vhost: (cosmetic) remove a superfluous variable initialisation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=002ef18eff43708be1d914cb11dbdd84fb149474;p=linux.git 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 Link: https://lore.kernel.org/r/20200527180541.5570-3-guennadi.liakhovetski@linux.intel.com Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index a40d16bdebb5e..534d1267b761d 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 { \