projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] hwmon: kzalloc conversion
[powerpc.git]
/
drivers
/
hwmon
/
gl518sm.c
diff --git
a/drivers/hwmon/gl518sm.c
b/drivers/hwmon/gl518sm.c
index
256b932
..
2f178db
100644
(file)
--- a/
drivers/hwmon/gl518sm.c
+++ b/
drivers/hwmon/gl518sm.c
@@
-365,11
+365,10
@@
static int gl518_detect(struct i2c_adapter *adapter, int address, int kind)
client structure, even though we cannot fill it completely yet.
But it allows us to access gl518_{read,write}_value. */
client structure, even though we cannot fill it completely yet.
But it allows us to access gl518_{read,write}_value. */
- if (!(data = k
m
alloc(sizeof(struct gl518_data), GFP_KERNEL))) {
+ if (!(data = k
z
alloc(sizeof(struct gl518_data), GFP_KERNEL))) {
err = -ENOMEM;
goto exit;
}
err = -ENOMEM;
goto exit;
}
- memset(data, 0, sizeof(struct gl518_data));
new_client = &data->client;
i2c_set_clientdata(new_client, data);
new_client = &data->client;
i2c_set_clientdata(new_client, data);