summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-05-13 16:04:35 +0300
committerToomas Soome <tsoome@me.com>2021-03-09 17:59:32 +0200
commit8993acd7cf0075cbfaf6df95d292f897079b5618 (patch)
treee0776e4ec40c7f13e21e898c717689b5f9a979ba
parent29940bf8af05acccf7b0a08eec421d2c1db7d560 (diff)
downloadillumos-joyent-8993acd7cf0075cbfaf6df95d292f897079b5618.tar.gz
13591 bnxe: implicit conversion from 'enum <anonymous>' to 'lm_status_t'
Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/io/bnxe/bnxe_hw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/io/bnxe/bnxe_hw.c b/usr/src/uts/common/io/bnxe/bnxe_hw.c
index 1ecfb8c734..68bbdc7d6d 100644
--- a/usr/src/uts/common/io/bnxe/bnxe_hw.c
+++ b/usr/src/uts/common/io/bnxe/bnxe_hw.c
@@ -128,7 +128,7 @@ static boolean_t BnxeRssEnable(um_device_t * pUM)
static lm_status_t BnxeRssDisable(um_device_t * pUM)
{
- int rc;
+ lm_status_t rc;
rc = lm_disable_rss((lm_device_t *)pUM, FALSE, NULL);
@@ -146,7 +146,7 @@ static lm_status_t BnxeRssDisable(um_device_t * pUM)
BnxeFmErrorReport(pUM, DDI_FM_DEVICE_INVAL_STATE);
}
- return (rc == LM_STATUS_SUCCESS) ? B_TRUE : B_FALSE;
+ return (rc);
}
@@ -693,7 +693,7 @@ void BnxeUpdatePhy(um_device_t * pUM)
* This is problematic. For non-PMF functions the lm_niv_vif_set for
* a link up will come very early and is queued for processing right
* after lm_chip_start. Thereafter setting the loopback mode brings
- * the interface back down. Don't know if setting the loopback mode
+ * the interface back down. Don't know if setting the loopback mode
* is even required when forcing it off. XXX
*/
if (IS_MF_AFEX_MODE(&pUM->lm_dev))
@@ -1300,7 +1300,7 @@ int BnxeHwStartL2(um_device_t * pUM)
BnxeLogDbg(pUM, "Setting L2 MAC Address");
- /* use the hw programmed address (GLDv3 will overwrite if needed) */
+ /* use the hw programmed address (GLDv3 will overwrite if needed) */
{
u8_t zero_mac_addr[ETHERNET_ADDRESS_SIZE];