projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd0ea3
)
phy: berlin-sata: Use devm_kcalloc at appropriate place
author
Axel Lin
<axel.lin@ingics.com>
Thu, 5 Mar 2015 01:40:41 +0000
(09:40 +0800)
committer
Kishon Vijay Abraham I
<kishon@ti.com>
Tue, 10 Mar 2015 08:42:27 +0000
(14:12 +0530)
Prefer devm_kcalloc over devm_kzalloc with multiply.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-berlin-sata.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/phy/phy-berlin-sata.c
b/drivers/phy/phy-berlin-sata.c
index 099eee8851e55e3cc4991eca53cdbd541eafe954..6f3e06d687de99260b0300e10d0864387d740177 100644
(file)
--- a/
drivers/phy/phy-berlin-sata.c
+++ b/
drivers/phy/phy-berlin-sata.c
@@
-218,7
+218,7
@@
static int phy_berlin_sata_probe(struct platform_device *pdev)
if (priv->nphys == 0)
return -ENODEV;
- priv->phys = devm_k
zalloc(dev, priv->nphys *
sizeof(*priv->phys),
+ priv->phys = devm_k
calloc(dev, priv->nphys,
sizeof(*priv->phys),
GFP_KERNEL);
if (!priv->phys)
return -ENOMEM;