projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4f79d4
)
gpio: x-gene: Remove a useless memset
author
Christophe Jaillet
<
[email protected]
>
Fri, 1 May 2015 12:29:06 +0000
(14:29 +0200)
committer
Linus Walleij
<
[email protected]
>
Tue, 12 May 2015 07:43:17 +0000
(09:43 +0200)
priv->irq is allocated using devm_kzalloc so there is no need to memset it.
Signed-off-by: Christophe Jaillet <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/gpio/gpio-xgene-sb.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-xgene-sb.c
b/drivers/gpio/gpio-xgene-sb.c
index fb9d29a5d584c0cf7793ab517f13c3383393405f..a7b8f8f0bf70eeda089f54c374b9f5d0886cd139 100644
(file)
--- 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);