Commit 5e768067 authored by Nishanth Menon's avatar Nishanth Menon Committed by Greg Kroah-Hartman
Browse files

staging: tidspbridge: remove custom TRUE FALSE



bool has standard true and false, we dont need to introduce
our own TRUE and FALSE macros.

Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Reviewed-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c8c1ad8c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1863,10 +1863,10 @@ bool wait_for_start(struct bridge_dev_context *dev_context, u32 dw_sync_addr)
	while (*((volatile u16 *)dw_sync_addr) && --timeout)
		udelay(10);

	/*  If timed out: return FALSE */
	/*  If timed out: return false */
	if (!timeout) {
		pr_err("%s: Timed out waiting DSP to Start\n", __func__);
		return FALSE;
		return false;
	}
	return TRUE;
	return true;
}
+0 −3
Original line number Diff line number Diff line
@@ -23,9 +23,6 @@
 * Internal state definitions for the dynamic loader
 */

#define TRUE 1
#define FALSE 0

/* type used for relocation intermediate results */
typedef s32 rvalue;

+0 −2
Original line number Diff line number Diff line
@@ -14,8 +14,6 @@
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#define TRUE 1
#define FALSE 0
#ifndef NULL
#define NULL 0
#endif
+1 −1
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ bool gb_test(struct gb_t_map *map, u32 bitn)

	mask = 1L << (bitn % BITS_PER_LONG);
	word = map->words[bitn / BITS_PER_LONG];
	state = word & mask ? TRUE : FALSE;
	state = word & mask ? true : false;

	return state;
}
+0 −10
Original line number Diff line number Diff line
@@ -19,16 +19,6 @@
#ifndef _GLOBALTYPES_H
#define _GLOBALTYPES_H

/*
 * Definition: TRUE, FALSE
 *
 * DESCRIPTION:  Boolean Definitions
 */
#ifndef TRUE
#define FALSE	0
#define TRUE	(!(FALSE))
#endif

/*
 * Definition: NULL
 *
Loading