]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
serial: kgdb_nmi: Use bool function return values of true/false not 1/0
authorJoe Perches <joe@perches.com>
Mon, 30 Mar 2015 17:43:23 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:26:57 +0000 (22:26 +0200)
Use the normal return values for bool functions

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/kgdb_nmi.c

index 129dc5be6028178344ba81f8225a8322e7c57d1a..117df151627d4a6528541c5122d05551ae30a7dd 100644 (file)
@@ -173,18 +173,18 @@ static int kgdb_nmi_poll_one_knock(void)
 bool kgdb_nmi_poll_knock(void)
 {
        if (kgdb_nmi_knock < 0)
-               return 1;
+               return true;
 
        while (1) {
                int ret;
 
                ret = kgdb_nmi_poll_one_knock();
                if (ret == NO_POLL_CHAR)
-                       return 0;
+                       return false;
                else if (ret == 1)
                        break;
        }
-       return 1;
+       return true;
 }
 
 /*