diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2019-04-08 11:35:40 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-04-09 11:49:52 +1000 |
commit | 9fd1495fba7a549c6cc1df239b3035750285ed61 (patch) | |
tree | 12913f9f7754ce9256714312ba27cb04958dfa08 | |
parent | 9facf33360549ce3ab82b4d1c4478332735cd16e (diff) | |
download | skiboot-9fd1495fba7a549c6cc1df239b3035750285ed61.zip skiboot-9fd1495fba7a549c6cc1df239b3035750285ed61.tar.gz skiboot-9fd1495fba7a549c6cc1df239b3035750285ed61.tar.bz2 |
test-ipmi-hiomap: Fix lpc-read-success
Cc: Andrew Jeffery <andrew@aj.id.au>
Cc: skiboot-stable@lists.ozlabs.org
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | libflash/test/test-ipmi-hiomap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c index b8f24a9..abc9777 100644 --- a/libflash/test/test-ipmi-hiomap.c +++ b/libflash/test/test-ipmi-hiomap.c @@ -222,10 +222,12 @@ int64_t lpc_read(enum OpalLPCAddressType addr_type __attribute__((unused)), static bool lpc_read_success(const uint8_t *buf, size_t len) { - if (len < 64) + if (len < 64) { while (len--) if (*buf++ != 0xaa) return false; + return true; + } for (int i = 0; i < 64; i++) if (buf[i] != 0xaa) |