summaryrefslogtreecommitdiffstats
path: root/chipset_enable.c
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2009-05-06 13:43:26 +0000
committerPeter Stuge <peter@stuge.se>2009-05-06 13:43:26 +0000
commita66ceba293a4cbbd3877c7d55206753370f95e80 (patch)
treec32003777b93a862081442653d4a1fddbbce00df /chipset_enable.c
parent7725fa8d63cc76c6c8a0df06f55710706755c83f (diff)
downloadast2050-flashrom-a66ceba293a4cbbd3877c7d55206753370f95e80.zip
ast2050-flashrom-a66ceba293a4cbbd3877c7d55206753370f95e80.tar.gz
Cleanup redundant condition and clarify message a little
Corresponding to flashrom svn r466. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r--chipset_enable.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index c52dd15..8cb30cc 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -675,12 +675,11 @@ static int enable_flash_sb600(struct pci_dev *dev, const char *name)
prot &= 0xfffffffc;
pci_write_byte(dev, reg, prot);
prot = pci_read_long(dev, reg);
- if (prot & 0x3)
- printf("SB600 still %s%sprotected from %u to %u\n",
- (prot & 0x1) ? "write " : "",
- (prot & 0x2) ? "read " : "",
- (prot & 0xfffffc00),
- (prot & 0xfffffc00) + ((prot & 0x3ff) << 8));
+ printf("SB600 %s%sunprotect failed from %u to %u\n",
+ (prot & 0x1) ? "write " : "",
+ (prot & 0x2) ? "read " : "",
+ (prot & 0xfffffc00),
+ (prot & 0xfffffc00) + ((prot & 0x3ff) << 8));
}
/* Read SPI_BaseAddr */
OpenPOWER on IntegriCloud