Commit 94e6a5b9 authored by Yang Li's avatar Yang Li Committed by Greg Kroah-Hartman
Browse files

misc: rtsx: Remove unneeded return variable



This patch removes unneeded return variables, using only
'0' instead.
It fixes the following warning detected by coccinelle:
./drivers/misc/cardreader/rtsx_pcr.c:1808:5-8: Unneeded variable: "ret".
Return "0" on line 1833.

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1612164640-84541-1-git-send-email-yang.lee@linux.alibaba.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d7a4bfca
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1799,7 +1799,6 @@ static int rtsx_pci_runtime_resume(struct device *device)
	struct pci_dev *pcidev = to_pci_dev(device);
	struct pcr_handle *handle;
	struct rtsx_pcr *pcr;
	int ret = 0;

	handle = pci_get_drvdata(pcidev);
	pcr = handle->pcr;
@@ -1824,7 +1823,7 @@ static int rtsx_pci_runtime_resume(struct device *device)
	schedule_delayed_work(&pcr->idle_work, msecs_to_jiffies(200));

	mutex_unlock(&pcr->pcr_mutex);
	return ret;
	return 0;
}

#else /* CONFIG_PM */