[PATCH 5/5] misc/pti: Delete an unnecessary return statement in two functions

From: SF Markus Elfring
Date: Tue Jan 09 2018 - 13:33:35 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 9 Jan 2018 18:52:36 +0100

The script "checkpatch.pl" pointed information out like the following.

WARNING: void function return statements are not generally useful

Thus remove such a statement in the affected functions.

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
drivers/misc/pti.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
index 11d92c3f43ba..7f9235e56cc0 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -142,7 +142,6 @@ static void pti_write_to_aperture(struct pti_masterchannel *mc,
ptiword |= *p++ << (24-(8*i));

iowrite32(ptiword, aperture);
- return;
}

/**
@@ -390,5 +389,4 @@ void pti_writedata(struct pti_masterchannel *mc, u8 *buf, int count)
pti_write_to_aperture(mc, buf, count);
- return;
}
EXPORT_SYMBOL_GPL(pti_writedata);

--
2.15.1