Skip to content

Commit

Permalink
test-ipmi-hiomap: Assert if size is zero
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasant Hegde authored and stewartsmith committed Apr 9, 2019
1 parent 7f29116 commit dfa935e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libflash/test/test-ipmi-hiomap.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ int ipmi_sel_register(uint8_t oem_cmd __attribute__((unused)),
int64_t lpc_write(enum OpalLPCAddressType addr_type __attribute__((unused)),
uint32_t addr __attribute__((unused)),
uint32_t data __attribute__((unused)),
uint32_t sz __attribute__((unused)))
uint32_t sz)
{
assert(sz != 0);
return 0;
}

Expand Down

0 comments on commit dfa935e

Please sign in to comment.