[PARISC] Use kzalloc and other janitor-style cleanups
Helge, o Convert a bunch of kmalloc/memset uses to kzalloc. o pci.c: Add some __read_mostly annotations. o pci.c: Move constant pci_post_reset_delay to asm/pci.h o grfioctl.h: Add A4450A to comment of CRT_ID_VISUALIZE_EG. o Add some consts to perf.c/perf_images.h Matthew, o sticore.c: Add some consts to suppress compile warnings. Signed-off-by: Helge Deller <deller@parisc-linux.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
committed by
Kyle McMartin
parent
a1c7444395
commit
cb6fc18e9c
@@ -60,12 +60,11 @@ static int hppb_probe(struct parisc_device *dev)
|
||||
}
|
||||
|
||||
if(card->hpa) {
|
||||
card->next = kmalloc(sizeof(struct hppb_card), GFP_KERNEL);
|
||||
card->next = kzalloc(sizeof(struct hppb_card), GFP_KERNEL);
|
||||
if(!card->next) {
|
||||
printk(KERN_ERR "HP-PB: Unable to allocate memory.\n");
|
||||
return 1;
|
||||
}
|
||||
memset(card->next, '\0', sizeof(struct hppb_card));
|
||||
card = card->next;
|
||||
}
|
||||
printk(KERN_INFO "Found GeckoBoa at 0x%lx\n", dev->hpa.start);
|
||||
|
Reference in New Issue
Block a user