]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: kpc2000_spi: eliminated duplicate initialization of drvdata local variable.
authorJeremy Sowden <jeremy@azazel.net>
Sat, 27 Apr 2019 19:54:00 +0000 (20:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Apr 2019 12:19:03 +0000 (14:19 +0200)
commit7912fd345b111ffd1f6bb5b4f1346ae2e7ce788f
treeb83aaf5e82a97b7c088f7241615bdc16f86cdf38
parenta4965d98b4d1ffa5b22f2039bc9e87898aff4976
staging: kpc2000_spi: eliminated duplicate initialization of drvdata local variable.

drvdata was being initialized to a particular value and then
having the same value assigned to it immediately afterwards.  Removed
the initializer.

Since the value assigned, pldev->dev.platform_data, is a pointer-to-
void, removed superfluous cast.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc_spi/spi_driver.c