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

Jeremy Sowden jeremy at azazel.net
Sat Apr 27 19:53:59 UTC 2019


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



More information about the devel mailing list