mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 07:23:43 +02:00
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>
This commit is contained in:
parent
29e46d0aa6
commit
ec819d6ccc
@ -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. */
|
* needed for non-SPI chips). Below we make sure that the requested range is within this window. */
|
||||||
if ((phys_addr & 0xFF000000) == 0xFF000000) {
|
if ((phys_addr & 0xFF000000) == 0xFF000000) {
|
||||||
return (void*)phys_addr;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user