aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/brocade/bna
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/brocade/bna')
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
index aac3a3b710a0..197af04ff1ab 100644
--- a/drivers/net/ethernet/brocade/bna/bnad.c
+++ b/drivers/net/ethernet/brocade/bna/bnad.c
@@ -723,7 +723,7 @@ void
723bnad_cb_ethport_link_status(struct bnad *bnad, 723bnad_cb_ethport_link_status(struct bnad *bnad,
724 enum bna_link_status link_status) 724 enum bna_link_status link_status)
725{ 725{
726 bool link_up = 0; 726 bool link_up = false;
727 727
728 link_up = (link_status == BNA_LINK_UP) || (link_status == BNA_CEE_UP); 728 link_up = (link_status == BNA_LINK_UP) || (link_status == BNA_CEE_UP);
729 729
@@ -3190,7 +3190,7 @@ bnad_pci_init(struct bnad *bnad,
3190 goto disable_device; 3190 goto disable_device;
3191 if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) && 3191 if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) &&
3192 !dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) { 3192 !dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) {
3193 *using_dac = 1; 3193 *using_dac = true;
3194 } else { 3194 } else {
3195 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); 3195 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
3196 if (err) { 3196 if (err) {
@@ -3199,7 +3199,7 @@ bnad_pci_init(struct bnad *bnad,
3199 if (err) 3199 if (err)
3200 goto release_regions; 3200 goto release_regions;
3201 } 3201 }
3202 *using_dac = 0; 3202 *using_dac = false;
3203 } 3203 }
3204 pci_set_master(pdev); 3204 pci_set_master(pdev);
3205 return 0; 3205 return 0;