mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-05-19 19:25:14 +00:00
[PATCH] input: convert kcalloc to kzalloc
This patch converts kcalloc(1, ...) calls to use the new kzalloc() function. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Cc: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
874ca6cd3f
commit
a97e148a8b
@@ -75,7 +75,7 @@ static int __devinit emu_probe(struct pci_dev *pdev, const struct pci_device_id
|
||||
if (!request_region(ioport, iolen, "emu10k1-gp"))
|
||||
return -EBUSY;
|
||||
|
||||
emu = kcalloc(1, sizeof(struct emu), GFP_KERNEL);
|
||||
emu = kzalloc(sizeof(struct emu), GFP_KERNEL);
|
||||
port = gameport_allocate_port();
|
||||
if (!emu || !port) {
|
||||
printk(KERN_ERR "emu10k1-gp: Memory allocation failed\n");
|
||||
|
||||
@@ -83,7 +83,7 @@ static int __devinit fm801_gp_probe(struct pci_dev *pci, const struct pci_device
|
||||
struct fm801_gp *gp;
|
||||
struct gameport *port;
|
||||
|
||||
gp = kcalloc(1, sizeof(struct fm801_gp), GFP_KERNEL);
|
||||
gp = kzalloc(sizeof(struct fm801_gp), GFP_KERNEL);
|
||||
port = gameport_allocate_port();
|
||||
if (!gp || !port) {
|
||||
printk(KERN_ERR "fm801-gp: Memory allocation failed\n");
|
||||
|
||||
@@ -142,7 +142,7 @@ static int ns558_isa_probe(int io)
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
ns558 = kcalloc(1, sizeof(struct ns558), GFP_KERNEL);
|
||||
ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL);
|
||||
port = gameport_allocate_port();
|
||||
if (!ns558 || !port) {
|
||||
printk(KERN_ERR "ns558: Memory allocation failed.\n");
|
||||
@@ -215,7 +215,7 @@ static int ns558_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *did)
|
||||
if (!request_region(ioport, iolen, "ns558-pnp"))
|
||||
return -EBUSY;
|
||||
|
||||
ns558 = kcalloc(1, sizeof(struct ns558), GFP_KERNEL);
|
||||
ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL);
|
||||
port = gameport_allocate_port();
|
||||
if (!ns558 || !port) {
|
||||
printk(KERN_ERR "ns558: Memory allocation failed\n");
|
||||
|
||||
Reference in New Issue
Block a user