Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350721
b: refs/heads/master
c: 9f58b9b
h: refs/heads/master
i:
  350719: 15e90ca
v: v3
  • Loading branch information
Axel Lin authored and Mike Turquette committed Jan 12, 2013
1 parent 1f88100 commit 6c391fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bab53301c3846ae9a5e1142dca2976f434f70481
refs/heads/master: 9f58b9b9fe3646421d9de251a4c5eec6d299a395
6 changes: 3 additions & 3 deletions trunk/drivers/clk/clk-max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static int max77686_clk_register(struct device *dev,

max77686->lookup = devm_kzalloc(dev, sizeof(struct clk_lookup),
GFP_KERNEL);
if (IS_ERR(max77686->lookup))
if (!max77686->lookup)
return -ENOMEM;

max77686->lookup->con_id = hw->init->name;
Expand All @@ -151,13 +151,13 @@ static int max77686_clk_probe(struct platform_device *pdev)

max77686_clks = devm_kzalloc(&pdev->dev, sizeof(struct max77686_clk *)
* MAX77686_CLKS_NUM, GFP_KERNEL);
if (IS_ERR(max77686_clks))
if (!max77686_clks)
return -ENOMEM;

for (i = 0; i < MAX77686_CLKS_NUM; i++) {
max77686_clks[i] = devm_kzalloc(&pdev->dev,
sizeof(struct max77686_clk), GFP_KERNEL);
if (IS_ERR(max77686_clks[i]))
if (!max77686_clks[i])
return -ENOMEM;
}

Expand Down

0 comments on commit 6c391fa

Please sign in to comment.