Dan Carpenter 014704e6f5 powerpc: Fix signedness bug in update_flash_db()
The "count < sizeof(struct os_area_db)" comparison is type promoted to
size_t so negative values of "count" are treated as very high values
and we accidentally return success instead of a negative error code.

This doesn't really change runtime much but it fixes a static checker
warning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-10-13 22:21:25 +11:00
..
2018-09-07 18:38:25 +02:00
2018-09-08 15:52:45 -07:00
2018-08-25 13:40:38 -07:00
2018-09-08 15:52:45 -07:00
2018-08-23 14:09:37 -07:00
2018-08-25 13:40:38 -07:00
2018-08-23 14:55:01 -07:00