diff options
Diffstat (limited to 'drivers/net/ethernet/sfc/mtd.c')
-rw-r--r-- | drivers/net/ethernet/sfc/mtd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/mtd.c b/drivers/net/ethernet/sfc/mtd.c index b6304486f24..bc9dcd6b30d 100644 --- a/drivers/net/ethernet/sfc/mtd.c +++ b/drivers/net/ethernet/sfc/mtd.c | |||
@@ -496,7 +496,7 @@ static int siena_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len) | |||
496 | rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type); | 496 | rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type); |
497 | if (rc) | 497 | if (rc) |
498 | goto out; | 498 | goto out; |
499 | part->mcdi.updating = 1; | 499 | part->mcdi.updating = true; |
500 | } | 500 | } |
501 | 501 | ||
502 | /* The MCDI interface can in fact do multiple erase blocks at once; | 502 | /* The MCDI interface can in fact do multiple erase blocks at once; |
@@ -528,7 +528,7 @@ static int siena_mtd_write(struct mtd_info *mtd, loff_t start, | |||
528 | rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type); | 528 | rc = efx_mcdi_nvram_update_start(efx, part->mcdi.nvram_type); |
529 | if (rc) | 529 | if (rc) |
530 | goto out; | 530 | goto out; |
531 | part->mcdi.updating = 1; | 531 | part->mcdi.updating = true; |
532 | } | 532 | } |
533 | 533 | ||
534 | while (offset < end) { | 534 | while (offset < end) { |
@@ -553,7 +553,7 @@ static int siena_mtd_sync(struct mtd_info *mtd) | |||
553 | int rc = 0; | 553 | int rc = 0; |
554 | 554 | ||
555 | if (part->mcdi.updating) { | 555 | if (part->mcdi.updating) { |
556 | part->mcdi.updating = 0; | 556 | part->mcdi.updating = false; |
557 | rc = efx_mcdi_nvram_update_finish(efx, part->mcdi.nvram_type); | 557 | rc = efx_mcdi_nvram_update_finish(efx, part->mcdi.nvram_type); |
558 | } | 558 | } |
559 | 559 | ||