Skip to content

Commit 002ef18

Browse files
lyakhmstsirkin
authored andcommitted
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]>
1 parent d90ca42 commit 002ef18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vhost/vhost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ static inline void __user *__vhost_get_user(struct vhost_virtqueue *vq,
920920

921921
#define vhost_put_user(vq, x, ptr) \
922922
({ \
923-
int ret = -EFAULT; \
923+
int ret; \
924924
if (!vq->iotlb) { \
925925
ret = __put_user(x, ptr); \
926926
} else { \

0 commit comments

Comments
 (0)