Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87232b82 authored by Jeremy Sowden's avatar Jeremy Sowden Committed by Greg Kroah-Hartman
Browse files

staging: kpc2000_spi: eliminated duplicate initialization of master local variable.



master 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 to master was dynamically allocated, this fixes
a memory-leak.

Signed-off-by: default avatarJeremy Sowden <jeremy@azazel.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7912fd34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -408,7 +408,7 @@ static int
kp_spi_probe(struct platform_device *pldev)
{
    struct kpc_core_device_platdata *drvdata;
    struct spi_master *master = spi_alloc_master(&pldev->dev, sizeof(struct kp_spi));
    struct spi_master *master;
    struct kp_spi *kpspi;
    struct resource *r;
    int status = 0;