tdx-cfg-block: fix off by one issue
authorMarcel Ziswiler <[email protected]>
Mon, 25 Mar 2019 16:18:29 +0000 (17:18 +0100)
committerStefano Babic <[email protected]>
Sat, 13 Apr 2019 18:30:10 +0000 (20:30 +0200)
commitccdd37130b3cfe8f11532b0b7b24774e2034acf0
treeac28bd2efaa9a2b580fe5b60b3283c07addf445c
parent43bfc499925ee1f49355974409808a227cb4f9a0
tdx-cfg-block: fix off by one issue

Fix toradex_modules array off by one issue potentially leading to
spurious printout during boot e.g.

    Model: Toradex  V1.2A,

instead of

    Model: Toradex UNKNOWN MODULE V1.2A.

Signed-off-by: Marcel Ziswiler <[email protected]>
Acked-by: Max Krummenacher <[email protected]>
Reviewed-by: Igor Opaniuk <[email protected]>
board/toradex/common/tdx-cfg-block.c