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

Commit 671970f5 authored by Mark A. Greer's avatar Mark A. Greer Committed by Samuel Ortiz
Browse files

NFC: trf7970a: Remove useless local variable



The trf7970a_suspend() routine always returns
zero so don't use a local return variable to
hold the return value.  This fixes up a smatch
warning.

Signed-off-by: default avatarMark A. Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 890c1652
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2123,7 +2123,6 @@ static int trf7970a_suspend(struct device *dev)
{
	struct spi_device *spi = container_of(dev, struct spi_device, dev);
	struct trf7970a *trf = spi_get_drvdata(spi);
	int ret = 0;

	dev_dbg(dev, "Suspend\n");

@@ -2133,7 +2132,7 @@ static int trf7970a_suspend(struct device *dev)

	mutex_unlock(&trf->lock);

	return ret;
	return 0;
}

static int trf7970a_resume(struct device *dev)