diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2015-05-01 14:29:06 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-05-12 09:43:17 +0200 |
commit | a4effddb6d12dc60d95918411387d1a62a6a0c88 (patch) | |
tree | 6ab448cfe8e7850256a1f593dd72383f96579846 /drivers/gpio/gpio-xgene-sb.c | |
parent | gpio: Constify platform_device_id (diff) | |
download | linux-a4effddb6d12dc60d95918411387d1a62a6a0c88.tar.xz linux-a4effddb6d12dc60d95918411387d1a62a6a0c88.zip |
gpio: x-gene: Remove a useless memset
priv->irq is allocated using devm_kzalloc so there is no need to memset it.
Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-xgene-sb.c')
-rw-r--r-- | drivers/gpio/gpio-xgene-sb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c index fb9d29a5d584..a7b8f8f0bf70 100644 --- a/drivers/gpio/gpio-xgene-sb.c +++ b/drivers/gpio/gpio-xgene-sb.c @@ -112,7 +112,6 @@ static int xgene_gpio_sb_probe(struct platform_device *pdev) GFP_KERNEL); if (!priv->irq) return -ENOMEM; - memset(priv->irq, 0, sizeof(u32) * XGENE_MAX_GPIO_DS); for (i = 0; i < priv->nirq; i++) { priv->irq[default_lines[i]] = platform_get_irq(pdev, i); |