hwspinlock/u8500: fix build error due to undefined label
authorAxel Lin <axel.lin@gmail.com>
Sun, 6 Nov 2011 13:14:16 +0000 (21:14 +0800)
committerOhad Ben-Cohen <ohad@wizery.com>
Tue, 8 Nov 2011 07:28:41 +0000 (09:28 +0200)
Fix below build error:

  CC      drivers/hwspinlock/u8500_hsem.o
drivers/hwspinlock/u8500_hsem.c: In function 'u8500_hsem_probe':
drivers/hwspinlock/u8500_hsem.c:113: error: label 'free_state' used but not defined

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/hwspinlock/u8500_hsem.c

index 143461a95ae4adc8bd75557aa8e76f5a2d298b9f..a120f14814f979a13c4b4ef609d8fc6a2691ad44 100644 (file)
@@ -108,10 +108,8 @@ static int __devinit u8500_hsem_probe(struct platform_device *pdev)
                return -ENODEV;
 
        io_base = ioremap(res->start, resource_size(res));
-       if (!io_base) {
-               ret = -ENOMEM;
-               goto free_state;
-       }
+       if (!io_base)
+               return -ENOMEM;
 
        /* make sure protocol 1 is selected */
        val = readl(io_base + HSEM_CTRL_REG);