crypto: nx - do not emit extra output if status is disabled
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>
Thu, 2 Jul 2015 22:40:09 +0000 (15:40 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 6 Jul 2015 08:32:03 +0000 (16:32 +0800)
commit7abd75bf7ac6d04e0389472cf2cd3a8bf53e4894
tree2c0b858b5a057fdb65414f156ddcaac5aaf7925a
parentec13bcbe07a202c32ea74927e27479aa4d19d1b1
crypto: nx - do not emit extra output if status is disabled

If the device-tree indicates the nx-842 device's status is 'disabled',
we emit two messages:

nx_compress_pseries ibm,compression-v1: nx842_OF_upd_status: status 'disabled' is not 'okay'.
nx_compress_pseries ibm,compression-v1: nx842_OF_upd: device disabled

Given that 'disabled' is a valid state, and we are going to emit that
the device is disabled, only print out a non-'okay' status if it is not
'disabled'.

Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-842-pseries.c