Skip to contentSkip to conversation

hwspinlock: Don't return a value in __hwspin_unlock

PATCH Applied Axel Lin 2 participants 2 messages Nov 3, 2011 Hardware spinlock core

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 hwspinlock: Don't return a value in __hwspin_unlock

Fix below build warning:

CC arch/arm/mach-omap2/hwspinlock.o
In file included from arch/arm/mach-omap2/hwspinlock.c:22:
include/linux/hwspinlock.h: In function '__hwspin_unlock':
include/linux/hwspinlock.h:121: warning: 'return' with a value, in function returning void

---
 include/linux/hwspinlock.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
include/linux/hwspinlock.h +0 -1
index 08a2fee..aad6bd4 100644
@@ -118,7 +118,6 @@ int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags)
 static inline
 void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags)
 {
-	return 0;
 }
 
 static inline int hwspin_lock_get_id(struct hwspinlock *hwlock)
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 1 line · Axel Lin

Fix below build warning:

Applied, thanks!