Skip to contentSkip to conversation

frv: Fix check on unsigned in do_signal()

PATCH New David Howells 1 participant 1 message Oct 26, 2009

lore
Share & tools
lore
#0 lore raw

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

From: Roel Kluin <[email protected]>

syscallno is unsigned

---

 arch/frv/kernel/signal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
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: