[PATCH] staging: bcm: Fix return in void function warning

Georgiana Chelu georgiana.chelu93 at gmail.com
Mon Sep 29 20:32:56 EEST 2014


This fixes checkpatch.pl warning:
WARNING: void function return statements are not generally useful

Signed-off-by: Georgiana Chelu <georgiana.chelu93 at gmail.com>
---
 drivers/staging/bcm/Misc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/bcm/Misc.c b/drivers/staging/bcm/Misc.c
index 883f739..073f3ed 100644
--- a/drivers/staging/bcm/Misc.c
+++ b/drivers/staging/bcm/Misc.c
@@ -440,7 +440,6 @@ void LinkMessage(struct bcm_mini_adapter *Adapter)
 		kfree(pstLinkRequest);
 	}
 	BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, LINK_UP_MSG, DBG_LVL_ALL, "LinkMessage <=====");
-	return;
 }
 
 /**********************************************************************
-- 
1.9.1



More information about the firefly mailing list