]> git.baikalelectronics.ru Git - kernel.git/commitdiff
xen: remove redundant initialization of variable ret
authorJing Xiangfeng <jingxiangfeng@huawei.com>
Sat, 19 Sep 2020 03:17:02 +0000 (11:17 +0800)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Sun, 4 Oct 2020 23:41:33 +0000 (18:41 -0500)
After commit 477e78a2e989 ("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>
drivers/xen/pvcalls-front.c

index 72d725a0ab5ce1f4afcac3684c92a55ebaa5f726..7984645b59563b7fc974ec4ecfcc10fb2dbf3e39 100644 (file)
@@ -371,7 +371,7 @@ out:
 static int create_active(struct sock_mapping *map, evtchn_port_t *evtchn)
 {
        void *bytes;
-       int ret = -ENOMEM, irq = -1, i;
+       int ret, irq = -1, i;
 
        *evtchn = 0;
        init_waitqueue_head(&map->active.inflight_conn_req);