mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 16:13:54 +08:00
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 <guennadi.liakhovetski@linux.intel.com> Link: https://lore.kernel.org/r/20200527180541.5570-3-guennadi.liakhovetski@linux.intel.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
d90ca42012
commit
002ef18eff
@ -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 { \
|
||||
|
Loading…
Reference in New Issue
Block a user