summaryrefslogtreecommitdiffstats
path: root/sst28sf040.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-09-16 08:18:08 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2009-09-16 08:18:08 +0000
commit9e72aa51a7a9ac5f041bacab75fd4be1e2a3356c (patch)
tree375d71717241476bec265568958024db7eee3e37 /sst28sf040.c
parentb08ee5c50619d90fd35a1dd06228b952c67dda0b (diff)
downloadflashrom-9e72aa51a7a9ac5f041bacab75fd4be1e2a3356c.tar.gz
flashrom-9e72aa51a7a9ac5f041bacab75fd4be1e2a3356c.tar.bz2
flashrom-9e72aa51a7a9ac5f041bacab75fd4be1e2a3356c.zip
Fix some of the issues reported by LLVM/clang's scan-build
Corresponding to flashrom svn r722. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> This commit fixes only some of the issues, those that were Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'sst28sf040.c')
-rw-r--r--sst28sf040.c32
1 files changed, 14 insertions, 18 deletions
diff --git a/sst28sf040.c b/sst28sf040.c
index d3d7bdb3d..930ad5bee 100644
--- a/sst28sf040.c
+++ b/sst28sf040.c
@@ -30,28 +30,24 @@
static void protect_28sf040(chipaddr bios)
{
- uint8_t tmp;
-
- tmp = chip_readb(bios + 0x1823);
- tmp = chip_readb(bios + 0x1820);
- tmp = chip_readb(bios + 0x1822);
- tmp = chip_readb(bios + 0x0418);
- tmp = chip_readb(bios + 0x041B);
- tmp = chip_readb(bios + 0x0419);
- tmp = chip_readb(bios + 0x040A);
+ chip_readb(bios + 0x1823);
+ chip_readb(bios + 0x1820);
+ chip_readb(bios + 0x1822);
+ chip_readb(bios + 0x0418);
+ chip_readb(bios + 0x041B);
+ chip_readb(bios + 0x0419);
+ chip_readb(bios + 0x040A);
}
static void unprotect_28sf040(chipaddr bios)
{
- uint8_t tmp;
-
- tmp = chip_readb(bios + 0x1823);
- tmp = chip_readb(bios + 0x1820);
- tmp = chip_readb(bios + 0x1822);
- tmp = chip_readb(bios + 0x0418);
- tmp = chip_readb(bios + 0x041B);
- tmp = chip_readb(bios + 0x0419);
- tmp = chip_readb(bios + 0x041A);
+ chip_readb(bios + 0x1823);
+ chip_readb(bios + 0x1820);
+ chip_readb(bios + 0x1822);
+ chip_readb(bios + 0x0418);
+ chip_readb(bios + 0x041B);
+ chip_readb(bios + 0x0419);
+ chip_readb(bios + 0x041A);
}
static int erase_sector_28sf040(struct flashchip *flash, unsigned long address, int sector_size)