summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-vf610.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-vf610.c')
-rw-r--r--drivers/gpio/gpio-vf610.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index 7c8d1e4c98..2aff62be59 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -106,8 +106,6 @@ static int vf610_gpio_probe(struct device_d *dev)
const __be32 *gpio_ranges;
port = xzalloc(sizeof(*port));
- if (!port)
- return -ENOMEM;
gpio_ranges = of_get_property(dev->device_node, "gpio-ranges", &size);
if (!gpio_ranges) {