HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/31227
Change subject: Remove trailing whitespace ......................................................................
Remove trailing whitespace
Change-Id: I1ff9418bcf150558ce7c97fafa3a68e5fa59f11e Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M at45db.c 1 file changed, 5 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/27/31227/1
diff --git a/at45db.c b/at45db.c index 619d41c..38c0685 100644 --- a/at45db.c +++ b/at45db.c @@ -341,7 +341,7 @@ { const unsigned int page_size = flash->chip->page_size; const unsigned int total_size = flash->chip->total_size * 1024; - + if ((addr % page_size) != 0 || (blocklen % page_size) != 0) { msg_cerr("%s: cannot erase partial pages: addr=%u, blocklen=%u\n", __func__, addr, blocklen); return 1; @@ -361,7 +361,7 @@ { const unsigned int page_size = flash->chip->page_size; const unsigned int total_size = flash->chip->total_size * 1024; - + if ((addr % page_size) != 0 || (blocklen % page_size) != 0) { // FIXME: should check blocks not pages msg_cerr("%s: cannot erase partial pages: addr=%u, blocklen=%u\n", __func__, addr, blocklen); return 1; @@ -381,7 +381,7 @@ { const unsigned int page_size = flash->chip->page_size; const unsigned int total_size = flash->chip->total_size * 1024; - + if ((addr % page_size) != 0 || (blocklen % page_size) != 0) { // FIXME: should check sectors not pages msg_cerr("%s: cannot erase partial pages: addr=%u, blocklen=%u\n", __func__, addr, blocklen); return 1; @@ -400,7 +400,7 @@ int spi_erase_at45db_chip(struct flashctx *flash, unsigned int addr, unsigned int blocklen) { const unsigned int total_size = flash->chip->total_size * 1024; - + if ((addr + blocklen) > total_size) { msg_cerr("%s: tried to erase beyond flash boundary: addr=%u, blocklen=%u, size=%u\n", __func__, addr, blocklen, total_size); @@ -532,7 +532,7 @@ { const unsigned int page_size = flash->chip->page_size; const unsigned int total_size = flash->chip->total_size; - + if ((start % page_size) != 0 || (len % page_size) != 0) { msg_cerr("%s: cannot write partial pages: start=%u, len=%u\n", __func__, start, len); return 1;