We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53f35a3 commit 84f60caCopy full SHA for 84f60ca
drivers/staging/isdn/gigaset/usb-gigaset.c
@@ -571,8 +571,7 @@ static int gigaset_initcshw(struct cardstate *cs)
571
{
572
struct usb_cardstate *ucs;
573
574
- cs->hw.usb = ucs =
575
- kmalloc(sizeof(struct usb_cardstate), GFP_KERNEL);
+ cs->hw.usb = ucs = kzalloc(sizeof(struct usb_cardstate), GFP_KERNEL);
576
if (!ucs) {
577
pr_err("out of memory\n");
578
return -ENOMEM;
@@ -584,9 +583,6 @@ static int gigaset_initcshw(struct cardstate *cs)
584
583
ucs->bchars[3] = 0;
585
ucs->bchars[4] = 0x11;
586
ucs->bchars[5] = 0x13;
587
- ucs->bulk_out_buffer = NULL;
588
- ucs->bulk_out_urb = NULL;
589
- ucs->read_urb = NULL;
590
tasklet_init(&cs->write_tasklet,
591
gigaset_modem_fill, (unsigned long) cs);
592
0 commit comments