ia64/xen-unstable
changeset 8483:248a75201ba3
directly return -ENOMEM instead of jumping to a return -ENOMEM label
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author | vhanquez@kneesa.uk.xensource.com |
---|---|
date | Sat Dec 31 14:17:10 2005 +0000 (2005-12-31) |
parents | 0fd894ba6ba0 |
children | 9270bb6b0421 |
files | linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c Sat Dec 31 14:16:13 2005 +0000 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c Sat Dec 31 14:17:10 2005 +0000 1.3 @@ -225,7 +225,7 @@ static int blktap_open(struct inode *ino 1.4 /* Allocate the fe ring. */ 1.5 sring = (blkif_sring_t *)get_zeroed_page(GFP_KERNEL); 1.6 if (sring == NULL) 1.7 - goto fail_nomem; 1.8 + return -ENOMEM; 1.9 1.10 SetPageReserved(virt_to_page(sring)); 1.11 1.12 @@ -233,9 +233,6 @@ static int blktap_open(struct inode *ino 1.13 FRONT_RING_INIT(&blktap_ufe_ring, sring, PAGE_SIZE); 1.14 1.15 return 0; 1.16 - 1.17 - fail_nomem: 1.18 - return -ENOMEM; 1.19 } 1.20 1.21 static int blktap_release(struct inode *inode, struct file *filp)