Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/nor/m25p80.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/nor/m25p80.c b/drivers/nor/m25p80.c index 594e9d2..13ce130 100644 --- a/drivers/nor/m25p80.c +++ b/drivers/nor/m25p80.c @@ -197,9 +197,6 @@ static ssize_t m25p80_erase(struct cdev *cdev, size_t count, loff_t offset) { struct m25p *flash = cdev->priv; u32 addr, len; - u32 start_sector; - u32 end_sector; - int eraseshift = ffs(flash->erasesize) - 1; dev_dbg(&flash->spi->dev, "%s %s 0x%llx, len %lld\n", __func__, "at", (long long)offset, (long long)count); @@ -211,9 +208,6 @@ static ssize_t m25p80_erase(struct cdev *cdev, size_t count, loff_t offset) addr = offset; len = count; - start_sector = offset >> eraseshift; - end_sector = (offset + count - 1) >> eraseshift; - /* whole-chip erase? */ if (len == flash->size) { -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox