[PATCH 3/4] C6X/megamode-pic: Delete an unnecessary return statement in megamod_pic_init()

From: SF Markus Elfring
Date: Thu May 11 2017 - 09:49:01 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 May 2017 15:05:41 +0200

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 function.

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
arch/c6x/platforms/megamod-pic.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/arch/c6x/platforms/megamod-pic.c b/arch/c6x/platforms/megamod-pic.c
index cf0ebf25e42f..c49aa63289fa 100644
--- a/arch/c6x/platforms/megamod-pic.c
+++ b/arch/c6x/platforms/megamod-pic.c
@@ -339,6 +339,4 @@ void __init megamod_pic_init(void)

soc_ops.get_exception = get_exception;
soc_ops.assert_event = assert_event;
-
- return;
}
--
2.12.3