Remove more TRUE/FALSE defines and uses...
Remove == TRUE tests
Convert BOOLEAN to bool
Convert int to bool where appropriate
Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
include/linux/synclink.h | 4 -
drivers/char/pcmcia/synclink_cs.c | 125 +++++++++---------
drivers/char/synclink.c | 258 ++++++++++++++++++-------------------
drivers/char/synclink_gt.c | 88 +++++++-------
drivers/char/synclinkmp.c | 157 +++++++++++-----------
5 files changed, 312 insertions(+), 320 deletions(-)
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c...
@@ -4475,14 +4476,13 @@ static void reset_rbufs(struct slgt_info *info)
/*
* pass receive HDLC frame to upper layer
*
- * return 1 if frame available, otherwise 0
+ * return true if frame available, otherwise false
*/
static int rx_get_frame(struct slgt_info *info)
{
unsigned int start, end;
unsigned short status;
unsigned int framesize = 0;
- int rc = 0;
unsigned long flags;
struct tty_struct *tty = info->tty;
unsigned char addr_field = 0xff;
@@ -4606,10 +4606,10 @@ check_again:
}
}
free_rbufs(info, start, end);
- rc = 1;
+ return true;
cleanup:
- return rc;
+ return false;
}