Skip to contentSkip to conversation

frv: Fix check on unsigned in do_signal()

PATCH New Roel Kluin 1 participant 1 message Oct 20, 2009

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 frv: Fix check on unsigned in do_signal()

syscallno is unsigned

---
Was this maybe intended?

arch/frv/kernel/signal.c +1 -1
index 6b0a2b6..0974c0e 100644
@@ -527,7 +527,7 @@ static void do_signal(void)
 
 no_signal:
 	/* Did we come from a system call? */
-	if (__frame->syscallno >= 0) {
+	if (__frame->syscallno != -1) {
 		/* Restart the system call - no handlers present */
 		switch (__frame->gr8) {
 		case -ERESTARTNOHAND: