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
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to