Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67188
b: refs/heads/master
c: cc61f95
h: refs/heads/master
v: v3
  • Loading branch information
Mariusz Kozlowski authored and Paul Mackerras committed Aug 17, 2007
1 parent 2ef9222 commit 40c17c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 0d279d47612d1b63155a1d9637a6fc5143dad594
refs/heads/master: cc61f957f486871536cc5531e83337fff4fe48f3
5 changes: 1 addition & 4 deletions trunk/drivers/macintosh/therm_adt746x.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,10 @@ static int attach_one_thermostat(struct i2c_adapter *adapter, int addr,
if (thermostat)
return 0;

th = (struct thermostat *)
kmalloc(sizeof(struct thermostat), GFP_KERNEL);

th = kzalloc(sizeof(struct thermostat), GFP_KERNEL);
if (!th)
return -ENOMEM;

memset(th, 0, sizeof(*th));
th->clt.addr = addr;
th->clt.adapter = adapter;
th->clt.driver = &thermostat_driver;
Expand Down

0 comments on commit 40c17c7

Please sign in to comment.