The error status should resotre to m->status in kp_spi_transfer_one_message(), and many white spaces in kpc2000_spi.c. patch 1 is to fix the error path, and patch 2 is to cleanup kpc2000_spi.c. v1: remove set but not used variable 'status'. v2: fix the subject tile. v3: add another patch to fix the error condition path and do some clean work for kpc2000_spi.c. Mao Wenan (2): staging: kpc2000: report error status to spi core staging: kpc2000: replace white spaces with tabs for kpc2000_spi.c drivers/staging/kpc2000/kpc2000_spi.c | 718 +++++++++++++------------- 1 file changed, 361 insertions(+), 357 deletions(-) -- 2.20.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel