diff options
author | Kaixu Xia <[email protected]> | 2020-11-08 23:00:48 +0800 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2020-11-16 11:59:30 +0100 |
commit | c24aa7b160f558c5ca4f05168dfab021987601c9 (patch) | |
tree | 353141fb4b011ea7d4a173a2444c42c2c660b46c /lib/mpi/mpi-add.c | |
parent | 9f7d4c916c42ec310d17dc0ea8f4ebf64aa1bbf1 (diff) |
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 <[email protected]>
Signed-off-by: Kaixu Xia <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions