summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorKaixu Xia <kaixuxia@tencent.com>2020-11-08 23:00:48 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2020-11-16 11:59:30 +0100
commitc24aa7b160f558c5ca4f05168dfab021987601c9 (patch)
tree353141fb4b011ea7d4a173a2444c42c2c660b46c /drivers/hid
parent9f7d4c916c42ec310d17dc0ea8f4ebf64aa1bbf1 (diff)
downloadlinux-stable-c24aa7b160f558c5ca4f05168dfab021987601c9.tar.gz
linux-stable-c24aa7b160f558c5ca4f05168dfab021987601c9.tar.bz2
linux-stable-c24aa7b160f558c5ca4f05168dfab021987601c9.zip
mmc: sdhci-pic32: Make pic32_sdhci_probe_platform() void
pic32_sdhci_probe_platform() always returned 0, so there's no reason for a return value. In addition, pic32_sdhci_probe() checked the return value for possible error which is unnecessary. Convert pic32_sdhci_probe_platform() to a void function and remove the return value check. Fix the following Coccinelle warning: ./drivers/mmc/host/sdhci-pic32.c:127:5-8: Unneeded variable: "ret". Return "0" on line 137 Reported-by: Tosk Robot <tencent_os_robot@tencent.com> Signed-off-by: Kaixu Xia <kaixuxia@tencent.com> Link: https://lore.kernel.org/r/1604847648-13036-1-git-send-email-kaixuxia@tencent.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/hid')
0 files changed, 0 insertions, 0 deletions