Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen: remove redundant initialization of variable ret

After commit 9f51c05dc41a ("pvcalls-front: Avoid
get_free_pages(GFP_KERNEL) under spinlock"), the variable ret is being
initialized with '-ENOMEM' that is meaningless. So remove it.

Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Link: https://lore.kernel.org/r/20200919031702.32192-1-jingxiangfeng@huawei.com
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

authored by

Jing Xiangfeng and committed by
Boris Ostrovsky
bba91dd6 d6bbc2ff

+1 -1
+1 -1
drivers/xen/pvcalls-front.c
··· 371 371 static int create_active(struct sock_mapping *map, evtchn_port_t *evtchn) 372 372 { 373 373 void *bytes; 374 - int ret = -ENOMEM, irq = -1, i; 374 + int ret, irq = -1, i; 375 375 376 376 *evtchn = 0; 377 377 init_waitqueue_head(&map->active.inflight_conn_req);