[PATCH 0/2] staging: kpc2000_spi: eliminated duplicate initialization of two local variables.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A couple of the local variables in kp_spi_probe had initializers which were
being overwritten by immediate assignment of the same values.  One of them was
dynamically allocated and so would leak memory.

Checkpatch whinges about the formatting, but fixing that would be rather a large
job.

Jeremy Sowden (2):
  staging: kpc2000_spi: eliminated duplicate initialization of drvdata local
    variable.
  staging: kpc2000_spi: eliminated duplicate initialization of master local
    variable.

 drivers/staging/kpc2000/kpc_spi/spi_driver.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.20.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux