From: Timur Tabi Date: Mon, 3 Mar 2008 15:58:52 +0000 (-0600) Subject: fix QE firmware uploading limit X-Git-Tag: v1.3.2~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=491fb6dea9f52fdb9cb5996e8e978b9e9685179f;p=u-boot fix QE firmware uploading limit Fix a typo in qe_upload_firmware() that prevented uploading firmware on systems with more than one RISC core. Signed-off-by: Timur Tabi --- diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 63acfa3d15..7b6ecd753d 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c @@ -334,7 +334,7 @@ int qe_upload_firmware(const struct qe_firmware *firmware) } /* Validate some of the fields */ - if ((firmware->count < 1) || (firmware->count >= MAX_QE_RISC)) { + if ((firmware->count < 1) || (firmware->count > MAX_QE_RISC)) { printf("Invalid data\n"); return -EINVAL; }