Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

parport: Drop unneeded NULL or 0 assignments

kzalloc() gives us a zeroed memory, no need to explicitly assing 0 or
NULL or similar to the members of the data structure that has been
allocated with the above mentioned API.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231016133135.1203643-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
f7572e93 b8cb855d

-4
-4
drivers/parport/share.c
··· 449 449 tmp->irq = irq; 450 450 tmp->dma = dma; 451 451 tmp->muxport = tmp->daisy = tmp->muxsel = -1; 452 - tmp->modes = 0; 453 452 INIT_LIST_HEAD(&tmp->list); 454 - tmp->devices = tmp->cad = NULL; 455 - tmp->flags = 0; 456 453 tmp->ops = ops; 457 454 tmp->physport = tmp; 458 - memset(tmp->probe_info, 0, 5 * sizeof(struct parport_device_info)); 459 455 rwlock_init(&tmp->cad_lock); 460 456 spin_lock_init(&tmp->waitlist_lock); 461 457 spin_lock_init(&tmp->pardevice_lock);