git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] OSS: replace kmalloc()+memset() combos with kzalloc()
[safe/jmp/linux-2.6]
/
sound
/
oss
/
dmasound
/
tas_common.c
diff --git
a/sound/oss/dmasound/tas_common.c
b/sound/oss/dmasound/tas_common.c
index
882ae98
..
665e85b
100644
(file)
--- a/
sound/oss/dmasound/tas_common.c
+++ b/
sound/oss/dmasound/tas_common.c
@@
-135,10
+135,9
@@
tas_detect_client(struct i2c_adapter *adapter, int address)
return -ENODEV;
}
return -ENODEV;
}
- new_client = k
m
alloc(sizeof(*new_client), GFP_KERNEL);
+ new_client = k
z
alloc(sizeof(*new_client), GFP_KERNEL);
if (!new_client)
return -ENOMEM;
if (!new_client)
return -ENOMEM;
- memset(new_client, 0, sizeof(*new_client));
new_client->addr = address;
new_client->adapter = adapter;
new_client->addr = address;
new_client->adapter = adapter;