summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-09 17:50:51 +0200
committerNico Huber <nico.h@gmx.de>2019-06-21 15:07:09 +0000
commitec819d6ccc2575f2b600b2570bb20ffde91e1bbf (patch)
tree1a912f89cf703649bfa67967ac47637e540e6243
parent29e46d0aa6ec9ce0b5234bf3bdbd9f22c951252c (diff)
downloadflashrom-ec819d6ccc2575f2b600b2570bb20ffde91e1bbf.tar.gz
flashrom-ec819d6ccc2575f2b600b2570bb20ffde91e1bbf.tar.bz2
flashrom-ec819d6ccc2575f2b600b2570bb20ffde91e1bbf.zip
serprog.c: Remove unneeded 'else'
'else' is not needed after a 'break' or 'return'. Change-Id: I9015020889c25ecbd391a18f56f99affc8ea307d Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33348 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--serprog.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/serprog.c b/serprog.c
index c3d48a4d9..b7ef35ce7 100644
--- a/serprog.c
+++ b/serprog.c
@@ -937,9 +937,8 @@ void *serprog_map(const char *descr, uintptr_t phys_addr, size_t len)
* needed for non-SPI chips). Below we make sure that the requested range is within this window. */
if ((phys_addr & 0xFF000000) == 0xFF000000) {
return (void*)phys_addr;
- } else {
- msg_pwarn(MSGHEADER "requested mapping %s is incompatible: 0x%zx bytes at 0x%0*" PRIxPTR ".\n",
- descr, len, PRIxPTR_WIDTH, phys_addr);
- return NULL;
}
+ msg_pwarn(MSGHEADER "requested mapping %s is incompatible: 0x%zx bytes at 0x%0*" PRIxPTR ".\n",
+ descr, len, PRIxPTR_WIDTH, phys_addr);
+ return NULL;
}