diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-02-02 15:12:26 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-02-06 15:24:17 +1100 |
commit | c1f07c394a96e9e6498edb01682ee52110e6b709 (patch) | |
tree | b7a77b492c93fbeba114f9a43ef35519d1c338a6 | |
parent | ed735d729a41161e6399dd453c90d35cd33b6417 (diff) | |
download | skiboot-c1f07c394a96e9e6498edb01682ee52110e6b709.zip skiboot-c1f07c394a96e9e6498edb01682ee52110e6b709.tar.gz skiboot-c1f07c394a96e9e6498edb01682ee52110e6b709.tar.bz2 |
hdat: Don't display "IPLPARAMS: No serial ports" on OPP
The IPLPARAMs lacking serial ports isn't an error. Since it
never happened on FSP machine and it's not used on BMC ones
there is no need to print a message at all
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hdata/spira.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index 9ab7d35..4ebbc43 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -922,12 +922,10 @@ static void add_iplparams_serials(const void *iplp, struct dt_node *node) const struct iplparms_serial *ipser; struct dt_node *ser_node; int count, i; - + count = HDIF_get_iarray_size(iplp, IPLPARMS_IDATA_SERIAL); - if (count <= 0) { - prerror("IPLPARAMS: No serial ports\n"); + if (count <= 0) return; - } prlog(PR_INFO, "IPLPARAMS: %d serial ports in array\n", count); node = dt_new(node, "fsp-serial"); |