Commit b574488e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: slicoss: remove TRUE/FALSE usage

Don't use TRUE and FALSE, we have proper boolean types in the kernel.

Cc: Lior Dotan <liodot@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2bb34736
...@@ -585,11 +585,11 @@ struct slic_crash_info { ...@@ -585,11 +585,11 @@ struct slic_crash_info {
#define ETHER_EQ_ADDR(_AddrA, _AddrB, _Result) \ #define ETHER_EQ_ADDR(_AddrA, _AddrB, _Result) \
{ \ { \
_Result = TRUE; \ _Result = true; \
if (*(u32 *)(_AddrA) != *(u32 *)(_AddrB)) \ if (*(u32 *)(_AddrA) != *(u32 *)(_AddrB)) \
_Result = FALSE; \ _Result = false; \
if (*(u16 *)(&((_AddrA)[4])) != *(u16 *)(&((_AddrB)[4]))) \ if (*(u16 *)(&((_AddrA)[4])) != *(u16 *)(&((_AddrB)[4]))) \
_Result = FALSE; \ _Result = false; \
} }
#if defined(CONFIG_X86_64) || defined(CONFIG_IA64) #if defined(CONFIG_X86_64) || defined(CONFIG_IA64)
...@@ -602,8 +602,8 @@ struct slic_crash_info { ...@@ -602,8 +602,8 @@ struct slic_crash_info {
#define SLIC_GET_ADDR_HIGH(_addr) (u32)0 #define SLIC_GET_ADDR_HIGH(_addr) (u32)0
#endif #endif
#define FLUSH TRUE #define FLUSH true
#define DONT_FLUSH FALSE #define DONT_FLUSH false
#define SIOCSLICDUMPCARD (SIOCDEVPRIVATE+9) #define SIOCSLICDUMPCARD (SIOCDEVPRIVATE+9)
#define SIOCSLICSETINTAGG (SIOCDEVPRIVATE+10) #define SIOCSLICSETINTAGG (SIOCDEVPRIVATE+10)
......
...@@ -42,9 +42,6 @@ ...@@ -42,9 +42,6 @@
#ifndef _SLIC_OS_SPECIFIC_H_ #ifndef _SLIC_OS_SPECIFIC_H_
#define _SLIC_OS_SPECIFIC_H_ #define _SLIC_OS_SPECIFIC_H_
#define FALSE (0)
#define TRUE (1)
#define SLIC_SECS_TO_JIFFS(x) ((x) * HZ) #define SLIC_SECS_TO_JIFFS(x) ((x) * HZ)
#define SLIC_MS_TO_JIFFIES(x) (SLIC_SECS_TO_JIFFS((x)) / 1000) #define SLIC_MS_TO_JIFFIES(x) (SLIC_SECS_TO_JIFFS((x)) / 1000)
......
...@@ -221,20 +221,6 @@ ...@@ -221,20 +221,6 @@
#define SLIC_HOSTID_DEFAULT 0xFFFF /* uninitialized hostid */ #define SLIC_HOSTID_DEFAULT 0xFFFF /* uninitialized hostid */
#define SLIC_NBR_MACS 4 #define SLIC_NBR_MACS 4
#ifndef FALSE
#define FALSE 0
#else
#undef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#else
#undef TRUE
#define TRUE 1
#endif
struct slic_rcvbuf { struct slic_rcvbuf {
unsigned char pad1[6]; unsigned char pad1[6];
ushort pad2; ushort pad2;
......
...@@ -1626,7 +1626,7 @@ static void slic_mcast_set_list(struct net_device *dev) ...@@ -1626,7 +1626,7 @@ static void slic_mcast_set_list(struct net_device *dev)
adapter->devflags_prev = dev->flags; adapter->devflags_prev = dev->flags;
DBG_MSG("%s call slic_config_set adapter->macopts[%x]\n", DBG_MSG("%s call slic_config_set adapter->macopts[%x]\n",
__func__, adapter->macopts); __func__, adapter->macopts);
slic_config_set(adapter, TRUE); slic_config_set(adapter, true);
} else { } else {
if (status == STATUS_SUCCESS) if (status == STATUS_SUCCESS)
slic_mcast_set_mask(adapter); slic_mcast_set_mask(adapter);
...@@ -2561,7 +2561,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter) ...@@ -2561,7 +2561,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
break; break;
} }
card->config.EepromValid = FALSE; card->config.EepromValid = false;
/* see if the EEPROM is valid by checking it's checksum */ /* see if the EEPROM is valid by checking it's checksum */
if ((eecodesize <= MAX_EECODE_SIZE) && if ((eecodesize <= MAX_EECODE_SIZE) &&
...@@ -2580,7 +2580,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter) ...@@ -2580,7 +2580,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
we wouldn't need this shit we wouldn't need this shit
*/ */
if (ee_chksum == calc_chksum) if (ee_chksum == calc_chksum)
card->config.EepromValid = TRUE; card->config.EepromValid = true;
} }
/* copy in the DRAM size */ /* copy in the DRAM size */
card->config.DramSize = dramsize; card->config.DramSize = dramsize;
...@@ -3022,15 +3022,15 @@ static bool slic_mac_filter(struct adapter *adapter, ...@@ -3022,15 +3022,15 @@ static bool slic_mac_filter(struct adapter *adapter,
if (opts & MAC_PROMISC) { if (opts & MAC_PROMISC) {
DBG_MSG("slicoss: %s (%s) PROMISCUOUS. Accept frame\n", DBG_MSG("slicoss: %s (%s) PROMISCUOUS. Accept frame\n",
__func__, adapter->netdev->name); __func__, adapter->netdev->name);
return TRUE; return true;
} }
if ((*dhost4 == 0xFFFFFFFF) && (*dhost2 == 0xFFFF)) { if ((*dhost4 == 0xFFFFFFFF) && (*dhost2 == 0xFFFF)) {
if (opts & MAC_BCAST) { if (opts & MAC_BCAST) {
adapter->rcv_broadcasts++; adapter->rcv_broadcasts++;
return TRUE; return true;
} else { } else {
return FALSE; return false;
} }
} }
...@@ -3038,7 +3038,7 @@ static bool slic_mac_filter(struct adapter *adapter, ...@@ -3038,7 +3038,7 @@ static bool slic_mac_filter(struct adapter *adapter,
if (opts & MAC_ALLMCAST) { if (opts & MAC_ALLMCAST) {
adapter->rcv_multicasts++; adapter->rcv_multicasts++;
adapter->stats.multicast++; adapter->stats.multicast++;
return TRUE; return true;
} }
if (opts & MAC_MCAST) { if (opts & MAC_MCAST) {
struct mcast_address *mcaddr = adapter->mcastaddrs; struct mcast_address *mcaddr = adapter->mcastaddrs;
...@@ -3050,20 +3050,20 @@ static bool slic_mac_filter(struct adapter *adapter, ...@@ -3050,20 +3050,20 @@ static bool slic_mac_filter(struct adapter *adapter,
if (equaladdr) { if (equaladdr) {
adapter->rcv_multicasts++; adapter->rcv_multicasts++;
adapter->stats.multicast++; adapter->stats.multicast++;
return TRUE; return true;
} }
mcaddr = mcaddr->next; mcaddr = mcaddr->next;
} }
return FALSE; return false;
} else { } else {
return FALSE; return false;
} }
} }
if (opts & MAC_DIRECTED) { if (opts & MAC_DIRECTED) {
adapter->rcv_unicasts++; adapter->rcv_unicasts++;
return TRUE; return true;
} }
return FALSE; return false;
} }
...@@ -3091,7 +3091,7 @@ static int slic_mac_set_address(struct net_device *dev, void *ptr) ...@@ -3091,7 +3091,7 @@ static int slic_mac_set_address(struct net_device *dev, void *ptr)
adapter->currmacaddr[3], adapter->currmacaddr[4], adapter->currmacaddr[3], adapter->currmacaddr[4],
adapter->currmacaddr[5]); adapter->currmacaddr[5]);
slic_config_set(adapter, TRUE); slic_config_set(adapter, true);
return 0; return 0;
} }
...@@ -3600,7 +3600,7 @@ static void slic_link_upr_complete(struct adapter *adapter, u32 isr) ...@@ -3600,7 +3600,7 @@ static void slic_link_upr_complete(struct adapter *adapter, u32 isr)
if (adapter->linkstate != LINK_UP) { if (adapter->linkstate != LINK_UP) {
/* setup the mac */ /* setup the mac */
DBG_MSG("%s call slic_config_set\n", __func__); DBG_MSG("%s call slic_config_set\n", __func__);
slic_config_set(adapter, TRUE); slic_config_set(adapter, true);
adapter->linkstate = LINK_UP; adapter->linkstate = LINK_UP;
DBG_MSG("\n(%s) Link UP: CALL slic_if_start_queue", DBG_MSG("\n(%s) Link UP: CALL slic_if_start_queue",
adapter->netdev->name); adapter->netdev->name);
...@@ -4064,7 +4064,7 @@ static void slic_cmdq_addcmdpage(struct adapter *adapter, u32 *page) ...@@ -4064,7 +4064,7 @@ static void slic_cmdq_addcmdpage(struct adapter *adapter, u32 *page)
cmd->pslic_handle = pslic_handle; cmd->pslic_handle = pslic_handle;
cmd->cmd64.hosthandle = pslic_handle->token.handle_token; cmd->cmd64.hosthandle = pslic_handle->token.handle_token;
cmd->busy = FALSE; cmd->busy = false;
cmd->paddrl = phys_addrl; cmd->paddrl = phys_addrl;
cmd->paddrh = phys_addrh; cmd->paddrh = phys_addrh;
cmd->next_all = prev; cmd->next_all = prev;
...@@ -5096,7 +5096,7 @@ static int slic_dump_thread(void *context) ...@@ -5096,7 +5096,7 @@ static int slic_dump_thread(void *context)
adapter->upr_lock.flags); adapter->upr_lock.flags);
} }
slic_dump_card(card, FALSE); slic_dump_card(card, false);
dump_complete = 1; dump_complete = 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment