From a3eae6db13543fca4d05f4c021a4f7c359daf8cf Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 18 Jul 2016 08:14:46 -0700 Subject: mfd: syscon: Don't check xzalloc return for NULL Xzalloc never returns NULL, so this check does not bring any value. Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- drivers/mfd/syscon.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/mfd') diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index cf1d2dfd58..487fa9ee0a 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -116,8 +116,6 @@ static int syscon_probe(struct device_d *dev) struct resource *res; syscon = xzalloc(sizeof(struct syscon)); - if (!syscon) - return -ENOMEM; res = dev_get_resource(dev, IORESOURCE_MEM, 0); if (IS_ERR(res)) { -- cgit v1.2.3