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: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
{
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");
mutex_unlock(&trf->lock);
- return ret;
+ return 0;
}
static int trf7970a_resume(struct device *dev)